// 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
@@ -272,7 +272,7 @@ class AdminStockInstantStateControllerCore extends AdminController
*/
public function initToolbar()
{
if (Tools::isSubmit('id_warehouse') && (int)Tools::getValue('id_warehouse') != -1)
if (Tools::isSubmit('id_warehouse') && (int)Tools::getValue('id_warehouse') != -1 && count($this->_list) > 0)
{
$this->toolbar_btn['export-stock-state-quantities-csv'] = array(
'short' => 'Export this list as CSV',