Skip to content
Extraits de code Groupes Projets
Valider 0d1d7a69 rédigé par Thomas Steur's avatar Thomas Steur Validation de sgiehl
Parcourir les fichiers

fix unit test as it fails if $columnToSort is null

parent a8e85cb5
Branches
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -202,7 +202,7 @@ class Sorter
public function getBestSortFlags(DataTable $table, $columnToSort)
{
// when column is label we always to sort by string or natural
if ($columnToSort !== 'label') {
if (isset($columnToSort) && $columnToSort !== 'label') {
foreach ($table->getRowsWithoutSummaryRow() as $row) {
$value = $row->getColumn($columnToSort);
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter