From 2f6ef9d02defde1f380e8d4442529a1837085aa0 Mon Sep 17 00:00:00 2001 From: bMancone Date: Wed, 28 Dec 2011 16:10:09 +0000 Subject: [PATCH] // removed some buttons in the view of the supply order --- controllers/admin/AdminSupplyOrdersController.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/controllers/admin/AdminSupplyOrdersController.php b/controllers/admin/AdminSupplyOrdersController.php index 5adb6856f..8616b6484 100644 --- a/controllers/admin/AdminSupplyOrdersController.php +++ b/controllers/admin/AdminSupplyOrdersController.php @@ -1732,11 +1732,17 @@ class AdminSupplyOrdersControllerCore extends AdminController $item['id_currency'] = $currency->id; } + // unsets some buttons + unset($this->toolbar_btn['export-csv-orders']); + unset($this->toolbar_btn['export-csv-details']); + unset($this->toolbar_btn['new']); + // renders list $helper = new HelperList(); $this->setHelperDisplay($helper); $helper->actions = array(); $helper->show_toolbar = false; + $helper->toolbar_btn = $this->toolbar_btn; $content = $helper->generateList($this->_list, $this->fieldsDisplay);