diff --git a/htdocs/product/stock/replenish.php b/htdocs/product/stock/replenish.php index eda18d09f42..7b351d336e4 100644 --- a/htdocs/product/stock/replenish.php +++ b/htdocs/product/stock/replenish.php @@ -68,7 +68,7 @@ $offset = $limit * $page ; */ //orders creation -//could go in the lib +//FIXME: could go in the lib if ($action == 'order') { $linecount = GETPOST('linecount', 'int'); $box = 0; @@ -159,7 +159,6 @@ $sql .= ' ON p.rowid = pf.fk_product'; $sql .= ' LEFT JOIN ' . MAIN_DB_PREFIX . 'product_stock as s'; $sql .= ' ON p.rowid = s.fk_product'; $sql.= ' WHERE p.entity IN (' . getEntity("product", 1) . ')'; - if ($sall) { $sql .= ' AND (p.ref LIKE "%'.$db->escape($sall).'%" '; $sql .= 'OR p.label LIKE "%'.$db->escape($sall).'%" '; @@ -363,7 +362,8 @@ if ($resql) { ' ', ' ', '', - '', + '', '', '';