From 5b65b12b1ec45daf77168f4c5e90ca67b3a5a687 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Mon, 14 Dec 2015 18:28:29 +0000 Subject: [PATCH] Avoid replacing an option that has been labeled while waiting for the response by checking to see if it is unchanged first. --- etemplate/js/et2_widget_selectAccount.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etemplate/js/et2_widget_selectAccount.js b/etemplate/js/et2_widget_selectAccount.js index e3d697d249..4f249ae53f 100644 --- a/etemplate/js/et2_widget_selectAccount.js +++ b/etemplate/js/et2_widget_selectAccount.js @@ -288,7 +288,7 @@ var et2_selectAccount = et2_selectbox.extend( for(var i = 0; i < this.widget.options.select_options.length; i++) { var opt = this.widget.options.select_options[i]; - if(opt && opt.value && opt.value == this.unknown) + if(opt && opt.value && opt.value == this.unknown && opt.label == this.unknown) { opt.label = name; this.widget.set_select_options(this.widget.options.select_options);