//display import button only on listing
This commit is contained in:
@@ -184,11 +184,13 @@ class AdminCustomersControllerCore extends AdminController
|
|||||||
parent::initToolbar();
|
parent::initToolbar();
|
||||||
if (!$this->can_add_customer)
|
if (!$this->can_add_customer)
|
||||||
unset($this->toolbar_btn['new']);
|
unset($this->toolbar_btn['new']);
|
||||||
else
|
else if (!$this->display) //display import button only on listing
|
||||||
|
{
|
||||||
$this->toolbar_btn['import'] = array(
|
$this->toolbar_btn['import'] = array(
|
||||||
'href' => $this->context->link->getAdminLink('AdminImport', true).'&import_type='.$this->table,
|
'href' => $this->context->link->getAdminLink('AdminImport', true).'&import_type='.$this->table,
|
||||||
'desc' => $this->l('Import')
|
'desc' => $this->l('Import')
|
||||||
);
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public function initProcess()
|
public function initProcess()
|
||||||
|
|||||||
Reference in New Issue
Block a user