[-] FO : fixed potential error when you delete a best seller #PSCFV-11167
This commit is contained in:
1 parent
d887dfc2f1
commit
6230c6249e
1 file changed
+1
@@ -89,6 +89,7 @@ class ProductSaleCore
|
|||||||
|
|
||||||
$ids = array();
|
$ids = array();
|
||||||
foreach ($products as $product)
|
foreach ($products as $product)
|
||||||
|
if (Validate::isUnsignedId($product['id_product']))
|
||||||
$ids[$product['id_product']] = 1;
|
$ids[$product['id_product']] = 1;
|
||||||
$ids = array_keys($ids);
|
$ids = array_keys($ids);
|
||||||
$ids = array_filter($ids);
|
$ids = array_filter($ids);
|
||||||
|
|||||||
Reference in new issue
Block a user