Skip to content

Commit

Permalink
FIX wrong GETPOST check (Dolibarr#28643)
Browse files Browse the repository at this point in the history
* FIX wrong GETPOST check

* FIX why GETPOST("search_type", "int") is not the same result of
GETPOSTINT("search_type") ?
  • Loading branch information
hregis authored Mar 5, 2024
1 parent bf6c662 commit 93ccee2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/product/list.php
Original file line number Diff line number Diff line change
Expand Up @@ -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')) {
Expand Down

0 comments on commit 93ccee2

Please sign in to comment.