Skip to content

Commit e6fe066

Browse files
committed
Fix wrong parameter (looking if a column is orderable instead of searchable to enable filters)
1 parent 8250af0 commit e6fe066

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Bllim/Datatables/Datatables.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -760,7 +760,7 @@ protected function filtering()
760760

761761
// column search
762762
for ($i = 0, $c = count($this->input['columns']); $i < $c; $i++) {
763-
if (isset($column_aliases[$i]) && $this->input['columns'][$i]['orderable'] == "true" && $this->input['columns'][$i]['search']['value'] != '') {
763+
if (isset($column_aliases[$i]) && $this->input['columns'][$i]['searchable'] == "true" && $this->input['columns'][$i]['search']['value'] != '') {
764764
// if filter column exists for this columns then use user defined method
765765
if (isset($this->filter_columns[$column_aliases[$i]])) {
766766

0 commit comments

Comments
 (0)