// Improve collections : where() method reworked (prototype changed) + validation of fields

This commit is contained in:
rMalie
2011-12-19 16:57:28 +00:00
parent 219f3ac870
commit b2b678ab3d
15 changed files with 240 additions and 67 deletions
+1 -1
View File
@@ -208,7 +208,7 @@ class CartRuleCore extends ObjectModel
{
$return = true;
$cart_rules = new Collection('CartRule');
$cart_rules->where('a.id_customer = '.(int)$id_customer);
$cart_rules->where('id_customer', '=', $id_customer);
foreach ($cart_rules as $cart_rule)
$return &= $cart_rule->delete();
return $return;