Fix : Sql error on movement_list

This commit is contained in:
lmarcouiller 2021-09-10 12:10:08 +02:00
parent 1ddcd2e709
commit b98f239739

View File

@ -548,7 +548,7 @@ if (!empty($search_user)) {
if (!empty($search_batch)) { if (!empty($search_batch)) {
$sql .= natural_search('m.batch', $search_batch); $sql .= natural_search('m.batch', $search_batch);
} }
if (!empty($product_id)) { if (!empty($product_id)&& $product_id != '-1') {
$sql .= natural_search('p.rowid', $product_id); $sql .= natural_search('p.rowid', $product_id);
} }
if (!empty($search_fk_projet) && $search_fk_projet != '-1') { if (!empty($search_fk_projet) && $search_fk_projet != '-1') {