// Improved filters

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@13886 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
bMancone
2012-03-06 13:35:05 +00:00
parent d42547cd0a
commit 0546f91456
4 changed files with 70 additions and 4 deletions
@@ -158,9 +158,12 @@ class AdminStockMvtControllerCore extends AdminController
$this->_group = 'GROUP BY a.id_stock_mvt';
// overrides where depending on the warehouse
$id_warehouse = $this->getCurrentWarehouseId();
$id_warehouse = (int)$this->getCurrentWarehouseId();
if ($id_warehouse > 0)
{
$this->_where = ' AND w.id_warehouse = '.$id_warehouse;
self::$currentIndex .= '&id_warehouse='.$id_warehouse;
}
// sets the current warehouse
$this->tpl_list_vars['current_warehouse'] = $this->getCurrentWarehouseId();