From aa6d9d5430193f3e1ec6dedfc2246c1a9f940bc2 Mon Sep 17 00:00:00 2001 From: vAugagneur Date: Mon, 4 Jun 2012 13:40:32 +0000 Subject: [PATCH] //fixed bug #PSCFV-2632 git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@15828 b9a71923-0436-4b27-9f14-aed3839534dd --- 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;