Skip to content

Commit bdc1a21

Browse files
committed
Fix column search when for zero values. Fix yajra#127.
1 parent 54053ae commit bdc1a21

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/yajra/Datatables/Datatables.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @package Laravel
88
* @category Package
99
* @author Arjay Angeles <aqangeles@gmail.com>
10-
* @version 3.6.6
10+
* @version 3.6.8
1111
*/
1212

1313
use Closure;
@@ -446,7 +446,7 @@ private function doFiltering()
446446
public function doColumnSearch(array $columns)
447447
{
448448
for ($i = 0, $c = count($columns); $i < $c; $i++) {
449-
if ($columns[$i]['searchable'] == "true" and ! empty($columns[$i]['search']['value']) and ! empty($columns[$i]['name'])) {
449+
if ($columns[$i]['searchable'] == "true" && $columns[$i]['search']['value'] <> '' && ! empty($columns[$i]['name'])) {
450450
$column = $columns[$i]['name'];
451451
$keyword = $this->setupKeyword($columns[$i]['search']['value']);
452452

0 commit comments

Comments
 (0)