From 1a5e42692e87bd369d07b467bcc0bbe2a0dc015f Mon Sep 17 00:00:00 2001 From: John BOTELLA <68917336+thersane-john@users.noreply.github.com> Date: Thu, 26 Sep 2024 17:49:39 +0200 Subject: [PATCH] FIX : max product combo limit (#31031) * Fix max product combo limit * Use already exist conf --------- Co-authored-by: Laurent Destailleur --- htdocs/product/admin/product.php | 12 ++++++------ htdocs/product/ajax/products.php | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/htdocs/product/admin/product.php b/htdocs/product/admin/product.php index c3f56c1e2b9..202fb69be79 100644 --- a/htdocs/product/admin/product.php +++ b/htdocs/product/admin/product.php @@ -671,12 +671,12 @@ if (empty($conf->use_javascript_ajax)) { } print ''; -if (!getDolGlobalString('PRODUIT_USE_SEARCH_TO_SELECT')) { - print ''; - print ''.$langs->trans("NumberOfProductShowInSelect").''; - print ''; - print ''; -} + +print ''; +print ''.$langs->trans("NumberOfProductShowInSelect").''; +print ''; +print ''; + // Do Not Add Product description on add lines print ''; diff --git a/htdocs/product/ajax/products.php b/htdocs/product/ajax/products.php index a0c379f078a..6e4f19577bc 100644 --- a/htdocs/product/ajax/products.php +++ b/htdocs/product/ajax/products.php @@ -315,7 +315,7 @@ if ($action == 'fetch' && !empty($id)) { } if (empty($mode) || $mode == 1) { // mode=1: customer - $arrayresult = $form->select_produits_list("", $htmlname, $type, 0, $price_level, $searchkey, $status, $finished, $outjson, $socid, '1', 0, '', $hidepriceinlabel, $warehouseStatus, $status_purchase, $warehouseId); + $arrayresult = $form->select_produits_list("", $htmlname, $type, getDolGlobalInt('PRODUIT_LIMIT_SIZE', 50), $price_level, $searchkey, $status, $finished, $outjson, $socid, '1', 0, '', $hidepriceinlabel, $warehouseStatus, $status_purchase, $warehouseId); } elseif ($mode == 2) { // mode=2: supplier $arrayresult = $form->select_produits_fournisseurs_list($socid, "", $htmlname, $type, "", $searchkey, $status, $outjson, 0, $alsoproductwithnosupplierprice); }