From 93ccee2efbfd3d73aa465fb5b697f2cbd76253cb Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Tue, 5 Mar 2024 11:06:52 +0100 Subject: [PATCH] FIX wrong GETPOST check (#28643) * FIX wrong GETPOST check * FIX why GETPOST("search_type", "int") is not the same result of GETPOSTINT("search_type") ? --- htdocs/product/list.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/product/list.php b/htdocs/product/list.php index b82db510d947b..2d47c9a7e5ed3 100644 --- a/htdocs/product/list.php +++ b/htdocs/product/list.php @@ -77,7 +77,7 @@ $search_barcode = GETPOST("search_barcode", 'alpha'); $search_label = GETPOST("search_label", 'alpha'); $search_default_workstation = GETPOST("search_default_workstation", 'alpha'); -$search_type = GETPOSTINT("search_type"); +$search_type = GETPOST("search_type", "int"); $search_vatrate = GETPOST("search_vatrate", 'alpha'); $searchCategoryProductOperator = 0; if (GETPOSTISSET('formfilteraction')) {