// Update temporary images on category when updated
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@17423 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -507,11 +507,11 @@ class AdminCategoriesControllerCore extends AdminController
|
||||
{
|
||||
if (!in_array($this->display, array('edit', 'add')))
|
||||
$this->multishop_context_group = false;
|
||||
|
||||
if (Tools::isSubmit('forcedeleteImage'))
|
||||
if (Tools::isSubmit('forcedeleteImage') || isset($_FILES['image']))
|
||||
{
|
||||
$this->processForceDeleteImage();
|
||||
Tools::redirectAdmin(self::$currentIndex.'&token='.Tools::getAdminTokenLite('AdminCategories').'&conf=7');
|
||||
if (Tools::isSubmit('forcedeleteImage'))
|
||||
Tools::redirectAdmin(self::$currentIndex.'&token='.Tools::getAdminTokenLite('AdminCategories').'&conf=7');
|
||||
}
|
||||
|
||||
return parent::postProcess();
|
||||
|
||||
Reference in New Issue
Block a user