FIX : travis & stickler feedbacks

This commit is contained in:
Gauthier PC portable 024 2022-10-24 09:46:41 +02:00
parent 02d9c9897a
commit d9f067eabb

View File

@ -2452,7 +2452,7 @@ class Form
$sql.= ' WHERE b.entity IN ('.getEntity('bom').')';
if (!empty($status)) $sql.= ' AND status = '. (int) $status;
if (!empty($type)) $sql.= ' AND bomtype = '. (int) $type;
if(! empty($TProducts)) $sql .= ' AND fk_product IN ('.implode(',', $TProducts).')';
if (!empty($TProducts)) $sql .= ' AND fk_product IN ('.$this->db->sanitize(implode(',', $TProducts)).')';
if (!empty($limit)) $sql.= ' LIMIT '. (int) $limit;
$resql = $db->query($sql);
if ($resql) {