// Fix collection in cartRule

This commit is contained in:
rMalie
2011-12-07 09:11:43 +00:00
parent d5e3a09887
commit 4266e89a02
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -59,7 +59,7 @@ class CartRuleCore extends ObjectModel
public static $definition = array(
'table' => 'cart_rule',
'identifier' => 'id_cart_rule',
'primary' => 'id_cart_rule',
'multilang' => true,
);
+1 -1
View File
@@ -151,7 +151,7 @@ abstract class ObjectModelCore
$this->id_shop = Context::getContext()->shop->getID(true);
if (!Validate::isTableOrIdentifier($this->identifier) || !Validate::isTableOrIdentifier($this->table))
throw new PrestashopException('Identifier or table format not valid');
throw new PrestashopException('Identifier or table format not valid for class '.get_class($this));
if ($id)
{