From d48ad7da792b701d4f566041431781acfd17d047 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Mon, 12 Oct 2015 09:57:42 +0000 Subject: [PATCH] Make sure we are not requesting server for an empty value option or other widgets but select-timezone as server won't find anything and it will fall into an infinitive loop, e.g. select-cat widget. --- etemplate/js/et2_widget_selectbox.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/etemplate/js/et2_widget_selectbox.js b/etemplate/js/et2_widget_selectbox.js index 4b36234b8d..fd89b5a64e 100644 --- a/etemplate/js/et2_widget_selectbox.js +++ b/etemplate/js/et2_widget_selectbox.js @@ -1120,9 +1120,10 @@ jQuery.extend(et2_selectbox, else { // Check that the value is in there - // 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") + // Make sure we are not requesting server for an empty value option or + // other widgets but select-timezone as server won't find anything and + // it will fall into an infinitive loop, e.g. select-cat widget. + if(attrs.value && attrs.value != "" && attrs.value != "0" && attrs.type == "select-timezone") { var missing_option = true; for(var i = 0; i < cache.length && missing_option; i++)