// Fix missing save button on list display
This commit is contained in:
1 parent
9badb78f5b
commit
3792fab83a
1 file changed
+8
@@ -1155,6 +1155,13 @@ class AdminControllerCore extends Controller
|
|||||||
$this->toolbar_title[] = is_array($obj->{$this->identifier_name}) ? $obj->{$this->identifier_name}[$this->context->employee->id_lang] : $obj->{$this->identifier_name};
|
$this->toolbar_title[] = is_array($obj->{$this->identifier_name}) ? $obj->{$this->identifier_name}[$this->context->employee->id_lang] : $obj->{$this->identifier_name};
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case 'list':
|
||||||
|
// Default save button - action dynamically handled in javascript
|
||||||
|
$this->page_header_toolbar_btn['save'] = array(
|
||||||
|
'href' => '#',
|
||||||
|
'desc' => $this->l('Save')
|
||||||
|
);
|
||||||
|
break;
|
||||||
case 'add':
|
case 'add':
|
||||||
// Default save button - action dynamically handled in javascript
|
// Default save button - action dynamically handled in javascript
|
||||||
$this->page_header_toolbar_btn['save'] = array(
|
$this->page_header_toolbar_btn['save'] = array(
|
||||||
@@ -1167,6 +1174,7 @@ class AdminControllerCore extends Controller
|
|||||||
$back = self::$currentIndex.'&token='.$this->token;
|
$back = self::$currentIndex.'&token='.$this->token;
|
||||||
if (!Validate::isCleanHtml($back))
|
if (!Validate::isCleanHtml($back))
|
||||||
die(Tools::displayError());
|
die(Tools::displayError());
|
||||||
|
|
||||||
if (!$this->lite_display)
|
if (!$this->lite_display)
|
||||||
$this->page_header_toolbar_btn['cancel'] = array(
|
$this->page_header_toolbar_btn['cancel'] = array(
|
||||||
'href' => $back,
|
'href' => $back,
|
||||||
|
|||||||
Reference in new issue
Block a user