From f064cccc7984fded2e5f3b9a20889ec4e5e7c280 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Wed, 15 Oct 2014 10:26:14 +0200 Subject: [PATCH] WEBUI JS: Add checkField initialization for LovCombo to avoid wrong sharing, fixes #2363 --- src/webui/static/app/idnode.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/webui/static/app/idnode.js b/src/webui/static/app/idnode.js index cd0d5853..c2de573e 100644 --- a/src/webui/static/app/idnode.js +++ b/src/webui/static/app/idnode.js @@ -346,8 +346,10 @@ tvheadend.IdNodeField = function(conf) /* ComboBox */ if (this.enum) { cons = Ext.form.ComboBox; - if (this.list) + if (this.list) { cons = Ext.ux.form.LovCombo; + c['checkField'] = 'checked_' + this.id; + } /* Combo settings */ c['mode'] = 'local'; @@ -499,6 +501,7 @@ tvheadend.idnode_editor_field = function(f, conf) mode: 'local', valueField: 'key', displayField: 'val', + checkField: 'checked_' + f.id, store: st, typeAhead: true, // TODO: this does strange things in multi forceSelection: false,