diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php
index f93b1ebf984..6f36b586352 100644
--- a/htdocs/core/class/html.form.class.php
+++ b/htdocs/core/class/html.form.class.php
@@ -5520,12 +5520,13 @@ class Form
'.($callurlonselect ? '
/* Code to execute a GET when we select a value */
$(".'.$htmlname.'").change(function() {
- var selected = $(".'.$htmlname.'").select2("val");
- $(".'.$htmlname.'").select2("val",""); /* reset visible combo value */
+ var selected = $(".'.$htmlname.'").val();
+ console.log("We select "+selected)
+ $(".'.$htmlname.'").val(""); /* reset visible combo value */
$.each( saveRemoteData, function( key, value ) {
if (key == selected)
{
- console.log("Do a redirect into selectArrayAjax to "+value.url)
+ console.log("selectArrayAjax - Do a redirect to "+value.url)
location.assign(value.url);
}
});
diff --git a/htdocs/core/js/lib_head.js.php b/htdocs/core/js/lib_head.js.php
index 6cda0a6a219..3ac4303ea8a 100644
--- a/htdocs/core/js/lib_head.js.php
+++ b/htdocs/core/js/lib_head.js.php
@@ -160,8 +160,8 @@ var select2arrayoflanguage = {
noResults: function () { return "transnoentitiesnoconv("Select2NotFound")); ?>"; },
inputTooShort: function (input) {
var n = input.minimum;
- console.log(input);
- console.log(input.minimum);
+ /*console.log(input);
+ console.log(input.minimum);*/
if (n > 1) return "transnoentitiesnoconv("Select2Enter")); ?> " + n + " transnoentitiesnoconv("Select2MoreCharacters")); ?>";
else return "transnoentitiesnoconv("Select2Enter")); ?> " + n + " transnoentitiesnoconv("Select2MoreCharacter")); ?>"
},