From beec97dc52be4c0f7c68f83a20eb0cfc684ef707 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Fri, 1 Apr 2016 13:22:11 +0200 Subject: [PATCH] IPRefSelector: fix selection move valueField and displayField to class config, else the value of the selection wont show up when selecting it. Signed-off-by: Thomas Lamprecht --- www/manager6/form/IPRefSelector.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/www/manager6/form/IPRefSelector.js b/www/manager6/form/IPRefSelector.js index fbf8a5db..dd0123a7 100644 --- a/www/manager6/form/IPRefSelector.js +++ b/www/manager6/form/IPRefSelector.js @@ -8,6 +8,9 @@ Ext.define('PVE.form.IPRefSelector', { ref_type: undefined, // undefined = any [undefined, 'ipset' or 'alias'] + valueField: 'ref', + displayField: 'ref', + initComponent: function() { var me = this; @@ -70,8 +73,6 @@ Ext.define('PVE.form.IPRefSelector', { Ext.apply(me, { store: store, - valueField: 'ref', - displayField: 'ref', listConfig: { columns: columns } });