// Update temporary images on category when updated
This commit is contained in:
@@ -507,11 +507,11 @@ class AdminCategoriesControllerCore extends AdminController
|
|||||||
{
|
{
|
||||||
if (!in_array($this->display, array('edit', 'add')))
|
if (!in_array($this->display, array('edit', 'add')))
|
||||||
$this->multishop_context_group = false;
|
$this->multishop_context_group = false;
|
||||||
|
if (Tools::isSubmit('forcedeleteImage') || isset($_FILES['image']))
|
||||||
if (Tools::isSubmit('forcedeleteImage'))
|
|
||||||
{
|
{
|
||||||
$this->processForceDeleteImage();
|
$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();
|
return parent::postProcess();
|
||||||
|
|||||||
Reference in New Issue
Block a user