Skip to content
Extraits de code Groupes Projets
Valider a79da2c5 rédigé par diosmosis's avatar diosmosis
Parcourir les fichiers

Refs #6078, fix column ordering bug, if 0 is used as pivotted table column, it...

Refs #6078, fix column ordering bug, if 0 is used as pivotted table column, it is ordered first and not prepended.
parent 44a99bde
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -452,7 +452,7 @@ class PivotByDimension extends BaseFilter
$columnSet = array_map(function () { return false; }, $columnSet);
// make sure label column is first
$columnSet = array_merge(array('label' => false), $columnSet);
$columnSet = array('label' => false) + $columnSet;
return $columnSet;
}
......@@ -466,8 +466,8 @@ class PivotByDimension extends BaseFilter
$currentIndex = 1;
foreach ($defaultRow as $columnName => $ignore) {
if ($columnName == $othersRowLabel
|| $columnName == 'label'
if ($columnName === $othersRowLabel
|| $columnName === 'label'
) {
$result[] = $columnName;
} else {
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter