// Controllers: improvement on CSV

This commit is contained in:
bMancone
2011-12-09 16:47:16 +00:00
parent c5b42696af
commit d0d7a9912f
3 changed files with 9 additions and 8 deletions
@@ -229,11 +229,14 @@ class AdminStockMvtControllerCore extends AdminController
*/
public function initToolbar()
{
$this->toolbar_btn['export-stock-mvt-csv'] = array(
'short' => 'Export this list as CSV',
'href' => $this->context->link->getAdminLink('AdminStockMvt').'&csv&id_warehouse='.(int)$this->getCurrentWarehouseId(),
'desc' => $this->l('Export (CSV)'),
);
if (count($this->_list) > 0)
{
$this->toolbar_btn['export-stock-mvt-csv'] = array(
'short' => 'Export this list as CSV',
'href' => $this->context->link->getAdminLink('AdminStockMvt').'&csv&id_warehouse='.(int)$this->getCurrentWarehouseId(),
'desc' => $this->l('Export (CSV)'),
);
}
parent::initToolbar();
unset($this->toolbar_btn['new']);
}