1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-02-03 01:08:08 +01:00

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

View File

@ -17,7 +17,7 @@ $total = Util\Query::readQuery($structure);
// Ricerca
$search = [];
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'];
}
}