Gestisco anche il valore 0 nelle ricerche dei moduli

This commit is contained in:
Beppe 2020-05-22 12:22:59 +02:00
parent 940c956044
commit c7fa7601c3
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ $total = Util\Query::readQuery($structure);
// Ricerca // Ricerca
$search = []; $search = [];
for ($i = 0; $i < count($columns); ++$i) { for ($i = 0; $i < count($columns); ++$i) {
if (!empty($columns[$i]['search']['value'])) { if (!empty($columns[$i]['search']['value']) || $columns[$i]['search']['value']=='0') {
$search[$total['fields'][$i]] = $columns[$i]['search']['value']; $search[$total['fields'][$i]] = $columns[$i]['search']['value'];
} }
} }