// Fix collection in cartRule

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11018 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rMalie
2011-12-07 09:11:43 +00:00
parent 8dcd11f56f
commit 3d1176686f
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)
{