Merge pull request #883 from abhishek-webkul/gli-1671

Added: 'Save and stay' button on missing pages at back office
This commit is contained in:
Rohit Jain
2024-03-14 20:39:06 +05:30
committed by GitHub
26 changed files with 323 additions and 32 deletions

View File

@@ -597,6 +597,18 @@ class AdminCustomersControllerCore extends AdminController
'title' => $this->l('Save'),
);
if (!Tools::getValue('liteDisplaying')) {
$this->fields_form['buttons'] = array(
'save-and-stay' => array(
'title' => $this->l('Save and stay'),
'name' => 'submitAdd'.$this->table.'AndStay',
'type' => 'submit',
'class' => 'btn btn-default pull-right',
'icon' => 'process-icon-save',
)
);
}
$birthday = explode('-', $this->getFieldValue($obj, 'birthday'));
$this->fields_value = array(