diff --git a/admin-dev/themes/default/template/controllers/cart_rules/product_rule.tpl b/admin-dev/themes/default/template/controllers/cart_rules/product_rule.tpl index d0847c234..f33f11a01 100644 --- a/admin-dev/themes/default/template/controllers/cart_rules/product_rule.tpl +++ b/admin-dev/themes/default/template/controllers/cart_rules/product_rule.tpl @@ -28,6 +28,10 @@ \ No newline at end of file diff --git a/admin-dev/themes/default/template/controllers/cart_rules/product_rule_itemlist.tpl b/admin-dev/themes/default/template/controllers/cart_rules/product_rule_itemlist.tpl index bb83283db..5fb6da3ba 100644 --- a/admin-dev/themes/default/template/controllers/cart_rules/product_rule_itemlist.tpl +++ b/admin-dev/themes/default/template/controllers/cart_rules/product_rule_itemlist.tpl @@ -1,11 +1,12 @@
{l s='Unselected'} - {foreach from=$product_rule_itemlist.unselected item='item'} {/foreach} +
 
{l s='Add'} @@ -13,11 +14,12 @@
{l s='Selected'} - {foreach from=$product_rule_itemlist.selected item='item'} {/foreach} +
 
{l s='Remove'} diff --git a/classes/ProductSale.php b/classes/ProductSale.php index d24400f5d..6830f628e 100644 --- a/classes/ProductSale.php +++ b/classes/ProductSale.php @@ -89,7 +89,8 @@ class ProductSaleCore $ids = array(); 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_filter($ids); sort($ids);