Skip to content

Commit

Permalink
Fixed #21: Sortable column is not visible with valid filter
Browse files Browse the repository at this point in the history
  • Loading branch information
arogachev committed Oct 13, 2015
1 parent 2d98b18 commit 05d6f25
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/grid/SortableColumn.php
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,9 @@ protected function isVisible()
}
}

foreach ($formData as $attribute => $value) {
if ($value && !in_array($attribute, $sortableAttributes)) {
foreach ($sortableAttributes as $attribute => $value) {
$formValue = ArrayHelper::getValue($formData, $attribute);
if ($formValue && $formValue != $value) {
return false;
}
}
Expand Down

0 comments on commit 05d6f25

Please sign in to comment.