From fa020a5a376fff8cc023962d434f31f93333fb73 Mon Sep 17 00:00:00 2001 From: Nathan Gray <nathangray.bsc@gmail.com> Date: Mon, 4 Mar 2013 23:25:36 +0000 Subject: [PATCH] Fix selectbox set_value() 'unchanged' check to actually check the value --- etemplate/js/et2_widget_selectbox.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etemplate/js/et2_widget_selectbox.js b/etemplate/js/et2_widget_selectbox.js index fcfbe6a4f0..525407f554 100644 --- a/etemplate/js/et2_widget_selectbox.js +++ b/etemplate/js/et2_widget_selectbox.js @@ -408,7 +408,7 @@ var et2_selectbox = et2_inputWidget.extend({ if(typeof _value != 'string' && jQuery(this.value).not(_value).length == 0 && jQuery(_value).not(this.value).length == 0) { // Unchanged - return; + if(_value == this.value) return; } jQuery("option",this.input).attr("selected", false); if(typeof _value == "array")