[-] BO : #PSTEST-241 : We can delete group shops only if the group doesn't have any shops
This commit is contained in:
@@ -90,7 +90,7 @@ class GroupShopCore extends ObjectModel
|
||||
if (!$res = parent::delete())
|
||||
return false;
|
||||
|
||||
foreach (Shop::getAssoTables() as $table_name => $row)
|
||||
foreach (GroupShop::getAssoTables() as $table_name => $row)
|
||||
{
|
||||
$id = 'id_'.$row['type'];
|
||||
if ($row['type'] == 'fk_group_shop')
|
||||
|
||||
Reference in New Issue
Block a user