Skip to content
Snippets Groups Projects
Commit 0bd56533 authored by legac's avatar legac
Browse files

Use the property originalValue instead of dictCfg in App.form.field.DictMultiDefault.

parent 931ce914
No related branches found
No related tags found
No related merge requests found
......@@ -86,7 +86,7 @@ Ext.define('App.form.field.DictMultiDefault', {
"use strict";
var me = this;
me.dictCfg = records.length ? records[0].get(me.dictField) : null;
me.originalValue = records.length ? records[0].get(me.dictField) : null;
// load the current value if the key is back to the original one
if (combo.getValue() === me.lastKey) {
......@@ -94,7 +94,7 @@ Ext.define('App.form.field.DictMultiDefault', {
// load default value
} else {
me.grid.setSource(me.dictCfg);
me.grid.setSource(me.originalValue);
}
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment