// small fix
This commit is contained in:
1 parent
4e1b4cdf90
commit
be1299d8d7
1 file changed
+3
-3
@@ -139,6 +139,8 @@ class AdminOrdersControllerCore extends AdminController
|
|||||||
|
|
||||||
public function initPageHeaderToolbar()
|
public function initPageHeaderToolbar()
|
||||||
{
|
{
|
||||||
|
parent::initPageHeaderToolbar();
|
||||||
|
|
||||||
if (empty($this->display))
|
if (empty($this->display))
|
||||||
$this->page_header_toolbar_btn['new_order'] = array(
|
$this->page_header_toolbar_btn['new_order'] = array(
|
||||||
'href' => self::$currentIndex.'&addorder&token='.$this->token,
|
'href' => self::$currentIndex.'&addorder&token='.$this->token,
|
||||||
@@ -146,11 +148,9 @@ class AdminOrdersControllerCore extends AdminController
|
|||||||
'icon' => 'process-icon-new'
|
'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())
|
&& Shop::isFeatureActive())
|
||||||
unset($this->page_header_toolbar_btn['new_order']);
|
unset($this->page_header_toolbar_btn['new_order']);
|
||||||
|
|
||||||
parent::initPageHeaderToolbar();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function renderForm()
|
public function renderForm()
|
||||||
|
|||||||
Reference in new issue
Block a user