Skip to content

Commit a680cc0

Browse files
fix: ricerca datatables campi vuoti tramite '='
1 parent 451b2f2 commit a680cc0

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/Util/Query.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -520,6 +520,10 @@ protected static function buildEqualityFilter($search_query, $value)
520520
}
521521
}
522522

523+
if (!$clean_value) {
524+
return ($search_query.' IS NULL OR '.$search_query.' = \'\'');
525+
}
526+
523527
return $search_query.' = '.prepare($clean_value);
524528
}
525529

0 commit comments

Comments
 (0)