// Stock : updated stock{cover, mvt, instant_state}controllers

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10007 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
bMancone
2011-11-09 16:03:51 +00:00
parent 72077bb489
commit c92e78ad00
9 changed files with 177 additions and 58 deletions
@@ -321,11 +321,8 @@ class AdminStockMvtControllerCore extends AdminController
if ($warehouse == 0)
{
$warehouse = -1;
if ((int)Tools::getValue('warehouse'))
$warehouse = (int)Tools::getValue('warehouse');
else if ((int)$this->context->cookie->warehouse)
$warehouse = (int)$this->context->cookie->warehouse;
$this->context->cookie->warehouse = $warehouse;
if ((int)Tools::getValue('id_warehouse'))
$warehouse = (int)Tools::getValue('id_warehouse');
}
return $warehouse;