// 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:
@@ -59,7 +59,7 @@ class CartRuleCore extends ObjectModel
|
|||||||
|
|
||||||
public static $definition = array(
|
public static $definition = array(
|
||||||
'table' => 'cart_rule',
|
'table' => 'cart_rule',
|
||||||
'identifier' => 'id_cart_rule',
|
'primary' => 'id_cart_rule',
|
||||||
'multilang' => true,
|
'multilang' => true,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@@ -151,7 +151,7 @@ abstract class ObjectModelCore
|
|||||||
$this->id_shop = Context::getContext()->shop->getID(true);
|
$this->id_shop = Context::getContext()->shop->getID(true);
|
||||||
|
|
||||||
if (!Validate::isTableOrIdentifier($this->identifier) || !Validate::isTableOrIdentifier($this->table))
|
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)
|
if ($id)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user