// Controllers: improvement on CSV
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11097 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user