// Fix on product association deletion
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@17083 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -1185,9 +1185,8 @@ abstract class ObjectModelCore
|
||||
public function hasMultishopEntries()
|
||||
{
|
||||
if (!Shop::isTableAssociated($this->def['table']) || !Shop::isFeatureActive())
|
||||
return false;
|
||||
//check if there is more than one entries in associated shop table
|
||||
return (bool)(Db::getInstance()->getValue('SELECT COUNT(*) FROM `'._DB_PREFIX_.$this->def['table'].'_shop` WHERE `'.$this->def['primary'].'` = '.(int)$this->id) > 1);
|
||||
return false;
|
||||
return (bool)Db::getInstance()->getValue('SELECT COUNT(*) FROM `'._DB_PREFIX_.$this->def['table'].'_shop` WHERE `'.$this->def['primary'].'` = '.(int)$this->id);
|
||||
}
|
||||
|
||||
public function isMultishop()
|
||||
|
||||
Reference in New Issue
Block a user