From 09c9ee97d98985cc88f862ff08dec5aad737579b Mon Sep 17 00:00:00 2001 From: Norbert Penel Date: Wed, 15 Jan 2020 18:36:57 +0100 Subject: [PATCH] Fix modulbuilder create forms 'fk_product' => array('type' => 'integer:Product:product/class/product.class.php' ... the input was arriving with a select2 instead of an ajax search --- htdocs/core/class/html.form.class.php | 1 + 1 file changed, 1 insertion(+) diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index d085ca66563..2c2064a0619 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -5910,6 +5910,7 @@ class Form //var_dump($objecttmp->filter); $prefixforautocompletemode = $objecttmp->element; if ($prefixforautocompletemode == 'societe') $prefixforautocompletemode = 'company'; + if ($prefixforautocompletemode == 'product') $prefixforautocompletemode='produit'; $confkeyforautocompletemode = strtoupper($prefixforautocompletemode).'_USE_SEARCH_TO_SELECT'; // For example COMPANY_USE_SEARCH_TO_SELECT dol_syslog(get_class($this)."::selectForForms object->filter=".$objecttmp->filter, LOG_DEBUG);