[-] BO : fix bug #PSFV-534 - Button toolbar disappear after save if errors
This commit is contained in:
@@ -962,8 +962,8 @@ class AdminControllerCore extends Controller
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (count($this->errors) <= 0)
|
if (empty($this->errors))
|
||||||
$this->redirect_after = self::$currentIndex.'&conf=6&token='.$token;
|
$this->confirmations[] = $this->_conf[6];
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
$this->errors[] = Tools::displayError('You do not have permission to edit here.');
|
$this->errors[] = Tools::displayError('You do not have permission to edit here.');
|
||||||
@@ -1834,7 +1834,10 @@ class AdminControllerCore extends Controller
|
|||||||
$this->action = 'reset_filters';
|
$this->action = 'reset_filters';
|
||||||
/* Submit options list */
|
/* Submit options list */
|
||||||
else if (Tools::getValue('submitOptions'.$this->table) || Tools::getValue('submitOptions'))
|
else if (Tools::getValue('submitOptions'.$this->table) || Tools::getValue('submitOptions'))
|
||||||
|
{
|
||||||
$this->action = 'update_options';
|
$this->action = 'update_options';
|
||||||
|
$this->display = 'options';
|
||||||
|
}
|
||||||
else if (Tools::isSubmit('submitFields') && $this->required_database && $this->tabAccess['add'] === '1' && $this->tabAccess['delete'] === '1')
|
else if (Tools::isSubmit('submitFields') && $this->required_database && $this->tabAccess['add'] === '1' && $this->tabAccess['delete'] === '1')
|
||||||
$this->action = 'update_fields';
|
$this->action = 'update_fields';
|
||||||
else if (is_array($this->bulk_actions))
|
else if (is_array($this->bulk_actions))
|
||||||
|
|||||||
Reference in New Issue
Block a user