From fff026ca7d43a2721453ef1e4c1b30cb83fe0dce Mon Sep 17 00:00:00 2001 From: vAugagneur Date: Mon, 17 Dec 2012 09:55:31 +0100 Subject: [PATCH] //display import button only on listing --- controllers/admin/AdminCustomersController.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/controllers/admin/AdminCustomersController.php b/controllers/admin/AdminCustomersController.php index 7cf5ee25b..dfc5e7988 100644 --- a/controllers/admin/AdminCustomersController.php +++ b/controllers/admin/AdminCustomersController.php @@ -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()