Fixed: The add new button disappear display type is not empty
This commit is contained in:
@@ -260,7 +260,7 @@ class AdminCartRulesControllerCore extends AdminController
|
||||
|
||||
public function initPageHeaderToolbar()
|
||||
{
|
||||
if (empty($this->display)) {
|
||||
if ($this->display != 'edit' && $this->display != 'add' && $this->display !='view') {
|
||||
$this->page_header_toolbar_btn['new_cart_rule'] = array(
|
||||
'href' => self::$currentIndex.'&addcart_rule&token='.$this->token,
|
||||
'desc' => $this->l('Add new cart rule', null, null, false),
|
||||
|
||||
Reference in New Issue
Block a user