From 061ac97f786968f7a125fdedd49b1998b34b61a5 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 7 Oct 2015 16:07:47 +0000 Subject: [PATCH] Fix infinitive request from selectbox widget --- etemplate/js/et2_widget_selectbox.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/etemplate/js/et2_widget_selectbox.js b/etemplate/js/et2_widget_selectbox.js index 39d09c1265..84ad4475b8 100644 --- a/etemplate/js/et2_widget_selectbox.js +++ b/etemplate/js/et2_widget_selectbox.js @@ -1119,7 +1119,9 @@ jQuery.extend(et2_selectbox, else { // Check that the value is in there - if(attrs.value) + // Make sure we are not requesting server for an empty value option + // as server won't find anything and it will fall into an infinitive loop + if(attrs.value && attrs.value != "" && attrs.value != "0") { var missing_option = true; for(var i = 0; i < cache.length && missing_option; i++)