From be1299d8d77d9e442c7b93a25ae7b38d512326a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Gaillard?= Date: Wed, 23 Oct 2013 14:19:19 +0200 Subject: [PATCH] // small fix --- controllers/admin/AdminOrdersController.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/controllers/admin/AdminOrdersController.php b/controllers/admin/AdminOrdersController.php index 83c9bfe3f..745f3f55b 100755 --- a/controllers/admin/AdminOrdersController.php +++ b/controllers/admin/AdminOrdersController.php @@ -139,6 +139,8 @@ class AdminOrdersControllerCore extends AdminController public function initPageHeaderToolbar() { + parent::initPageHeaderToolbar(); + if (empty($this->display)) $this->page_header_toolbar_btn['new_order'] = array( 'href' => self::$currentIndex.'&addorder&token='.$this->token, @@ -146,11 +148,9 @@ class AdminOrdersControllerCore extends AdminController 'icon' => 'process-icon-new' ); - if (Context::getContext()->shop->getContext() != Shop::CONTEXT_SHOP && isset($this->toolbar_btn['new']) + if (Context::getContext()->shop->getContext() != Shop::CONTEXT_SHOP && isset($this->page_header_toolbar_btn['new_order']) && Shop::isFeatureActive()) unset($this->page_header_toolbar_btn['new_order']); - - parent::initPageHeaderToolbar(); } public function renderForm()