[-] 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:
@@ -942,6 +942,7 @@ class AdminControllerCore extends Controller
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$this->display = 'list';
|
||||||
if (empty($this->errors))
|
if (empty($this->errors))
|
||||||
$this->confirmations[] = $this->_conf[6];
|
$this->confirmations[] = $this->_conf[6];
|
||||||
}
|
}
|
||||||
@@ -1491,9 +1492,13 @@ class AdminControllerCore extends Controller
|
|||||||
{
|
{
|
||||||
if ($this->fields_options && is_array($this->fields_options))
|
if ($this->fields_options && is_array($this->fields_options))
|
||||||
{
|
{
|
||||||
if ($this->display != 'options')
|
if (isset($this->display) && $this->display != 'options')
|
||||||
$this->show_toolbar = false;
|
$this->show_toolbar = false;
|
||||||
|
else if (!isset($this->display))
|
||||||
|
$this->display = 'options';
|
||||||
|
|
||||||
|
unset($this->toolbar_btn);
|
||||||
|
$this->initToolbar();
|
||||||
$helper = new HelperOptions($this);
|
$helper = new HelperOptions($this);
|
||||||
$this->setHelperDisplay($helper);
|
$this->setHelperDisplay($helper);
|
||||||
$helper->id = $this->id;
|
$helper->id = $this->id;
|
||||||
|
|||||||
Reference in New Issue
Block a user