[-] BO : #PSTEST-241 : We can delete group shops only if the group doesn't have any shops

This commit is contained in:
mBertholino
2012-01-02 09:31:07 +00:00
parent 7365ad3768
commit fbbfb98db2
2 changed files with 19 additions and 1 deletions
+1 -1
View File
@@ -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')