// Remove $this->table and $this->identifier from objectModels + normalize
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11076 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -147,14 +147,16 @@ class CurrencyCore extends ObjectModel
|
||||
|
||||
public function deleteSelection($selection)
|
||||
{
|
||||
if (!is_array($selection) OR !Validate::isTableOrIdentifier($this->identifier) OR !Validate::isTableOrIdentifier($this->table))
|
||||
if (!is_array($selection))
|
||||
die(Tools::displayError());
|
||||
foreach ($selection AS $id)
|
||||
|
||||
foreach ($selection as $id)
|
||||
{
|
||||
$obj = new Currency((int)($id));
|
||||
$res[$id] = $obj->delete();
|
||||
}
|
||||
foreach ($res AS $value)
|
||||
|
||||
foreach ($res as $value)
|
||||
if (!$value)
|
||||
return false;
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user