From ea7152a818e7512c77b79be28ac3a0bd2ac0e24c Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 16 Sep 2025 01:23:16 +0200 Subject: [PATCH] Fix phan --- htdocs/commande/card.php | 2 +- htdocs/compta/facture/card.php | 2 +- htdocs/core/tpl/objectline_create.tpl.php | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/htdocs/commande/card.php b/htdocs/commande/card.php index 46aeeb3075f..93313068dec 100644 --- a/htdocs/commande/card.php +++ b/htdocs/commande/card.php @@ -1043,7 +1043,7 @@ if (empty($reshook)) { } if (!$error && isModEnabled('variants') && $prod_entry_mode != 'free') { - if ($combinations = GETPOST('combinations', 'array:alphanothtml')) { + if ($combinations = GETPOST('combinations', 'array:alphanohtml')) { //Check if there is a product with the given combination $prodcomb = new ProductCombination($db); diff --git a/htdocs/compta/facture/card.php b/htdocs/compta/facture/card.php index 6423db11f95..d3f03ad3a10 100644 --- a/htdocs/compta/facture/card.php +++ b/htdocs/compta/facture/card.php @@ -2556,7 +2556,7 @@ if (empty($reshook)) { } if (!$error && isModEnabled('variants') && $prod_entry_mode != 'free') { - if ($combinations = GETPOST('combinations', 'array:alphanothtml')) { + if ($combinations = GETPOST('combinations', 'array:alphanohtml')) { //Check if there is a product with the given combination $prodcomb = new ProductCombination($db); diff --git a/htdocs/core/tpl/objectline_create.tpl.php b/htdocs/core/tpl/objectline_create.tpl.php index 433305a80b8..8a66293e272 100644 --- a/htdocs/core/tpl/objectline_create.tpl.php +++ b/htdocs/core/tpl/objectline_create.tpl.php @@ -290,9 +290,9 @@ if ($nolinesbefore) { } if (getDolGlobalString('ENTREPOT_EXTRA_STATUS')) { // hide products in closed warehouse, but show products for internal transfer - $form->select_produits(GETPOSTINT('idprod'), 'idprod', $filtertype, getDolGlobalInt('PRODUIT_LIMIT_SIZE'), $buyer->price_level, $statustoshow, 2, '', 1, array(), $buyer->id, $labelforradio, 0, 'maxwidth500 widthcentpercentminusx', 0, $statuswarehouse, GETPOST('combinations', 'array:alphanothtml')); + $form->select_produits(GETPOSTINT('idprod'), 'idprod', $filtertype, getDolGlobalInt('PRODUIT_LIMIT_SIZE'), $buyer->price_level, $statustoshow, 2, '', 1, array(), $buyer->id, $labelforradio, 0, 'maxwidth500 widthcentpercentminusx', 0, $statuswarehouse, GETPOST('combinations', 'array:alphanohtml')); } else { - $form->select_produits(GETPOSTINT('idprod'), 'idprod', $filtertype, getDolGlobalInt('PRODUIT_LIMIT_SIZE'), $buyer->price_level, $statustoshow, 2, '', 1, array(), $buyer->id, $labelforradio, 0, 'maxwidth500 widthcentpercentminusx', 0, '', GETPOST('combinations', 'array:alphanothtml')); + $form->select_produits(GETPOSTINT('idprod'), 'idprod', $filtertype, getDolGlobalInt('PRODUIT_LIMIT_SIZE'), $buyer->price_level, $statustoshow, 2, '', 1, array(), $buyer->id, $labelforradio, 0, 'maxwidth500 widthcentpercentminusx', 0, '', GETPOST('combinations', 'array:alphanohtml')); } if (getDolGlobalString('MAIN_AUTO_OPEN_SELECT2_ON_FOCUS_FOR_CUSTOMER_PRODUCTS')) { ?>