[-] BO : BugFix : #PSFV-1020 : category reduction can be deleted now

This commit is contained in:
vChabot
2012-03-13 17:06:20 +00:00
parent 00cd5d5c35
commit 0a4a5036a9
2 changed files with 14 additions and 1 deletions
@@ -437,6 +437,18 @@ class AdminGroupsControllerCore extends AdminController
}
}
}
else
{
// if we have no category reduction anymore, we delete the existing ones
Db::getInstance()->execute('
DELETE FROM `'._DB_PREFIX_.'group_reduction`
WHERE `id_group` = '.(int)Tools::getValue('id_group')
);
Db::getInstance()->execute('
DELETE FROM `'._DB_PREFIX_.'product_group_reduction_cache`
WHERE `id_group` = '.(int)Tools::getValue('id_group')
);
}
}
/**