From ec368446f4f8f4625c7f3f16cdf2045f54963ad5 Mon Sep 17 00:00:00 2001 From: fBrignoli Date: Tue, 29 May 2012 13:24:35 +0000 Subject: [PATCH] [-] BO : Bug Fixed #PSCFV-2555 - AdminController with Options: Add new button turns into Save git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@15738 b9a71923-0436-4b27-9f14-aed3839534dd --- classes/controller/AdminController.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/classes/controller/AdminController.php b/classes/controller/AdminController.php index 55376d28a..910165ebb 100644 --- a/classes/controller/AdminController.php +++ b/classes/controller/AdminController.php @@ -942,6 +942,7 @@ class AdminControllerCore extends Controller } } + $this->display = 'list'; if (empty($this->errors)) $this->confirmations[] = $this->_conf[6]; } @@ -1491,9 +1492,13 @@ class AdminControllerCore extends Controller { if ($this->fields_options && is_array($this->fields_options)) { - if ($this->display != 'options') + if (isset($this->display) && $this->display != 'options') $this->show_toolbar = false; + else if (!isset($this->display)) + $this->display = 'options'; + unset($this->toolbar_btn); + $this->initToolbar(); $helper = new HelperOptions($this); $this->setHelperDisplay($helper); $helper->id = $this->id;