From a06116336ef9f960f2c89dc762bde5dde7cc3f5d Mon Sep 17 00:00:00 2001 From: tDidierjean Date: Thu, 10 May 2012 13:54:05 +0000 Subject: [PATCH] [-] FO : fix #PSCFV-548 - when ordering out of stock downloadable product, the download is not available in order history --- controllers/admin/AdminProductsController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/controllers/admin/AdminProductsController.php b/controllers/admin/AdminProductsController.php index 0a352bddb..dab0eabd3 100644 --- a/controllers/admin/AdminProductsController.php +++ b/controllers/admin/AdminProductsController.php @@ -1026,7 +1026,7 @@ class AdminProductsControllerCore extends AdminController if (!$this->action) parent::initProcess(); - if ($this->action == 'save' || $this->action == 'new' && isset($this->available_tabs[Tools::getValue('key_tab')])) + if (isset($this->available_tabs[Tools::getValue('key_tab')])) $this->tab_display = Tools::getValue('key_tab'); // Set tab to display if not decided already @@ -1452,7 +1452,7 @@ class AdminProductsControllerCore extends AdminController if ($this->display == 'edit') $this->redirect_after = self::$currentIndex.'&id_product='.(int)$this->object->id .(Tools::getIsset('id_category') ? '&id_category='.(int)Tools::getValue('id_category') : '') - .'&addproduct&conf=3&key_tab='.Tools::safeOutput(Tools::getValue('key_tab')).'&token='.$this->token; + .'&updateproduct&conf=3&key_tab='.Tools::safeOutput(Tools::getValue('key_tab')).'&token='.$this->token; else // Default behavior (save and back) $this->redirect_after = self::$currentIndex