From 5b4ef52831fff16daad7792ff3b54a00ddeaaf8f Mon Sep 17 00:00:00 2001 From: vAugagneur Date: Mon, 4 Jun 2012 13:40:32 +0000 Subject: [PATCH] //fixed bug #PSCFV-2632 --- controllers/admin/AdminProductsController.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/controllers/admin/AdminProductsController.php b/controllers/admin/AdminProductsController.php index cfb4a2617..cd469eb19 100644 --- a/controllers/admin/AdminProductsController.php +++ b/controllers/admin/AdminProductsController.php @@ -1640,7 +1640,12 @@ class AdminProductsControllerCore extends AdminController { // Save and stay on same form if ($this->display == 'edit') + { $this->confirmations[] = $this->l('Update successful'); + $this->redirect_after = self::$currentIndex.'&id_product='.(int)$this->object->id + .(Tools::getIsset('id_category') ? '&id_category='.(int)Tools::getValue('id_category') : '') + .'&updateproduct&conf=4&key_tab='.Tools::safeOutput(Tools::getValue('key_tab')).'&token='.$this->token; + } else // Default behavior (save and back) $this->redirect_after = self::$currentIndex.(Tools::getIsset('id_category') ? '&id_category='.(int)Tools::getValue('id_category') : '').'&conf=4&token='.$this->token;