[-] 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
This commit is contained in:
fBrignoli
2012-05-29 13:24:35 +00:00
parent 74e2464cd1
commit ec368446f4
+6 -1
View File
@@ -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;