// New order button fix

This commit is contained in:
Jerome Nadaud
2013-10-17 09:37:19 +02:00
parent 2f34af4646
commit 1f50e074f7
+5 -1
View File
@@ -139,13 +139,17 @@ class AdminOrdersControllerCore extends AdminController
public function initPageHeaderToolbar()
{
if (empty($this->display) && Context::getContext()->shop->getContext() == Shop::CONTEXT_SHOP && isset($this->toolbar_btn['new']) && Shop::isFeatureActive())
if (empty($this->display))
$this->page_header_toolbar_btn['new_order'] = array(
'href' => self::$currentIndex.'&addorder&token='.$this->token,
'desc' => $this->l('Add new order'),
'icon' => 'process-icon-new'
);
if (Context::getContext()->shop->getContext() != Shop::CONTEXT_SHOP && isset($this->toolbar_btn['new'])
&& Shop::isFeatureActive())
unset($this->page_header_toolbar_btn['new_order']);
parent::initPageHeaderToolbar();
}