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