diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index 21650cd62f6..fdb02e041fc 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -1229,13 +1229,13 @@ class Form { // Enhance with select2 $nodatarole=''; - /*if ($conf->use_javascript_ajax) + if ($conf->use_javascript_ajax) { - include_once DOL_DOCUMENT_ROOT . '/core/lib/ajax.lib.php'; + include_once DOL_DOCUMENT_ROOT . '/core/lib/ajax.lib.php'; $comboenhancement = ajax_combobox($htmlname); - $out.= $comboenhancement; - $nodatarole=($comboenhancement?' data-role="none"':''); - }*/ + $out.=$comboenhancement; + $nodatarole=($comboenhancement?' data-role="none"':''); + } $out.= '