// display import button only on the listing on admin adresses

This commit is contained in:
Rémi Gaillard committed 2013-03-01 15:53:23 +01:00
1 parent 0ea0b662f9
commit 8f030538b8
1 file changed
+5 -4
@@ -75,10 +75,11 @@ class AdminAddressesControllerCore extends AdminController
public function initToolbar()
{
parent::initToolbar();
$this->toolbar_btn['import'] = array(
'href' => $this->context->link->getAdminLink('AdminImport', true).'&import_type='.$this->table,
'desc' => $this->l('Import')
);
if (!$this->display)
$this->toolbar_btn['import'] = array(
'href' => $this->context->link->getAdminLink('AdminImport', true).'&import_type='.$this->table,
'desc' => $this->l('Import')
);
}
public function renderForm()