Fix: filter on warehouse

This commit is contained in:
Laurent Destailleur
2013-10-10 15:45:03 +02:00
parent 3e91a4d982
commit bb492d6d1f

View File

@@ -42,7 +42,7 @@ $id=GETPOST('id','int');
$product_id=GETPOST("product_id");
$action=GETPOST('action');
$cancel=GETPOST('cancel');
$idproduct = isset($_GET["idproduct"])?$_GET["idproduct"]:$_PRODUCT["idproduct"];
$idproduct = GETPOST('idproduct','int');
$year = isset($_GET["year"])?$_GET["year"]:$_POST["year"];
$month = isset($_GET["month"])?$_GET["month"]:$_POST["month"];
$search_movement = isset($_REQUEST["search_movement"])?$_REQUEST["search_movement"]:'';
@@ -190,7 +190,7 @@ if ($resql)
$help_url='EN:Module_Stocks_En|FR:Module_Stock|ES:Módulo_Stocks';
$texte = $langs->trans("ListOfStockMovements");
$texte.=' ('.$langs->trans("ForThisWarehouse").')';
if ($id) $texte.=' ('.$langs->trans("ForThisWarehouse").')';
llxHeader("",$texte,$help_url);
/*