// 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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user