From 8f030538b8674ea23cf6ffb97876e8d3b03a3892 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Gaillard?= Date: Fri, 1 Mar 2013 15:53:23 +0100 Subject: [PATCH] // display import button only on the listing on admin adresses --- controllers/admin/AdminAddressesController.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/controllers/admin/AdminAddressesController.php b/controllers/admin/AdminAddressesController.php index 223b0f12b..bab4bdfd9 100644 --- a/controllers/admin/AdminAddressesController.php +++ b/controllers/admin/AdminAddressesController.php @@ -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()