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

This commit is contained in:
mBertholino committed 2012-01-02 09:31:07 +00:00
1 parent 7365ad3768
commit fbbfb98db2
2 files changed
+19 -1

No files matched your search

+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')