From febd529cf7952e21308a53931087194af2addb36 Mon Sep 17 00:00:00 2001 From: Adam Sutton Date: Sat, 12 Oct 2013 12:26:22 +0100 Subject: [PATCH] webui: stop multi select combo selecting the wrong thing this was because it reverted to using the display string and doing a reverse mapping. Which is clearly the wrong way to do things when you can have multiple display fields for the same key value. --- src/webui/static/lovcombo/lovcombo-all.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/webui/static/lovcombo/lovcombo-all.js b/src/webui/static/lovcombo/lovcombo-all.js index b0caa8fd..789817de 100644 --- a/src/webui/static/lovcombo/lovcombo-all.js +++ b/src/webui/static/lovcombo/lovcombo-all.js @@ -176,6 +176,7 @@ Ext.ux.form.LovCombo = Ext.extend(Ext.form.ComboBox, { */ ,onRealBlur:function() { this.list.hide(); +/* var rv = this.getRawValue(); var rva = rv.split(this.separator);//new RegExp(RegExp.escape(this.separator) + '+')); var va = []; @@ -190,6 +191,8 @@ Ext.ux.form.LovCombo = Ext.extend(Ext.form.ComboBox, { }, this); }, this); this.setValue(va.join(this.separator)); +*/ + this.setValue(this.value); this.store.clearFilter(); } // eo function onRealBlur // }}}