Skip to content

Commit 05d6f25

Browse files
committed
Fixed #21: Sortable column is not visible with valid filter
1 parent 2d98b18 commit 05d6f25

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/grid/SortableColumn.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,9 @@ protected function isVisible()
193193
}
194194
}
195195

196-
foreach ($formData as $attribute => $value) {
197-
if ($value && !in_array($attribute, $sortableAttributes)) {
196+
foreach ($sortableAttributes as $attribute => $value) {
197+
$formValue = ArrayHelper::getValue($formData, $attribute);
198+
if ($formValue && $formValue != $value) {
198199
return false;
199200
}
200201
}

0 commit comments

Comments
 (0)