// Update temporary images on category when updated

This commit is contained in:
rGaillard committed 2012-09-19 16:18:59 +00:00
1 parent 102957c776
commit 359d3dad90
1 file changed
+2 -2
@@ -507,10 +507,10 @@ 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();
if (Tools::isSubmit('forcedeleteImage'))
Tools::redirectAdmin(self::$currentIndex.'&token='.Tools::getAdminTokenLite('AdminCategories').'&conf=7'); Tools::redirectAdmin(self::$currentIndex.'&token='.Tools::getAdminTokenLite('AdminCategories').'&conf=7');
} }