I had troubles filtering my table using a integer value of 0, as my table would get filtered with "null" instead of "0".
The issue seems to come from line 184 of DataTablesComponent.php, since empty() returns true for not only "null", but also for "0" as an integer.
The issue has been resolved by replacing
!empty($localSearch)
with
!empty($localSearch) || $localSearch === '0'
I had troubles filtering my table using a integer value of 0, as my table would get filtered with "null" instead of "0". The issue seems to come from line 184 of DataTablesComponent.php, since empty() returns true for not only "null", but also for "0" as an integer.
The issue has been resolved by replacing
!empty($localSearch)
with!empty($localSearch) || $localSearch === '0'