[-] 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:
@@ -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')
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user