// Restore save button on header toolbar
This commit is contained in:
@@ -1137,6 +1137,11 @@ class AdminControllerCore extends Controller
|
|||||||
break;
|
break;
|
||||||
case 'add':
|
case 'add':
|
||||||
case 'edit':
|
case 'edit':
|
||||||
|
// Default save button - action dynamically handled in javascript
|
||||||
|
$this->page_header_toolbar_btn['save'] = array(
|
||||||
|
'href' => '#',
|
||||||
|
'desc' => $this->l('Save')
|
||||||
|
);
|
||||||
// Default cancel button - like old back link
|
// Default cancel button - like old back link
|
||||||
$back = Tools::safeOutput(Tools::getValue('back', ''));
|
$back = Tools::safeOutput(Tools::getValue('back', ''));
|
||||||
if (empty($back))
|
if (empty($back))
|
||||||
@@ -1149,6 +1154,12 @@ class AdminControllerCore extends Controller
|
|||||||
'desc' => $this->l('Cancel')
|
'desc' => $this->l('Cancel')
|
||||||
);
|
);
|
||||||
break;
|
break;
|
||||||
|
case 'options':
|
||||||
|
// Default save button - action dynamically handled in javascript
|
||||||
|
$this->page_header_toolbar_btn['save'] = array(
|
||||||
|
'href' => '#',
|
||||||
|
'desc' => $this->l('Save')
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (is_array($this->page_header_toolbar_btn)
|
if (is_array($this->page_header_toolbar_btn)
|
||||||
|
|||||||
Reference in New Issue
Block a user