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

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@14109 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
vChabot
2012-03-13 17:06:20 +00:00
parent 69350b2631
commit 998ef4263e
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')
);
}
}
/**