[-] 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
+2
-1
@@ -89,7 +89,8 @@ class ProductSaleCore
|
|||||||
|
|
||||||
$ids = array();
|
$ids = array();
|
||||||
foreach ($products as $product)
|
foreach ($products as $product)
|
||||||
$ids[$product['id_product']] = 1;
|
if (Validate::isUnsignedId($product['id_product']))
|
||||||
|
$ids[$product['id_product']] = 1;
|
||||||
$ids = array_keys($ids);
|
$ids = array_keys($ids);
|
||||||
$ids = array_filter($ids);
|
$ids = array_filter($ids);
|
||||||
sort($ids);
|
sort($ids);
|
||||||
|
|||||||
Reference in new issue
Block a user