From: Alan Knowles Date: Fri, 28 Feb 2020 08:22:48 +0000 (+0800) Subject: Roo/form/ComboNested.js X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=39aa0f3d5ff8def917332888298f6cc65b715b96 Roo/form/ComboNested.js --- diff --git a/Roo/form/ComboNested.js b/Roo/form/ComboNested.js index e1fefa9810..8f724214c8 100644 --- a/Roo/form/ComboNested.js +++ b/Roo/form/ComboNested.js @@ -329,7 +329,7 @@ Roo.extend(Roo.form.ComboNested, Roo.form.ComboBox, { // private - recordToStores : function(store, prop, value, stack) + recordToStack : function(store, prop, value, stack) { var cstore = new Roo.data.SimpleStore({ //fields : this.store.reader.meta.fields, // we need array reader.. for @@ -350,7 +350,7 @@ Roo.extend(Roo.form.ComboNested, Roo.form.ComboBox, { } if (r.data.cn && r.data.cn.length) { cstore.loadDataFromChildren( r); - var cret = _this.recordToStores(cstore, prop, value, stack); + var cret = _this.recordToStack(cstore, prop, value, stack); if (cret !== false) { record = cret; srec = r; @@ -377,7 +377,7 @@ Roo.extend(Roo.form.ComboNested, Roo.form.ComboBox, { { // if store is not loaded, then we will need to wait for that to happen first. var stack = []; - this.findRecordInStore(this.store, this.hiddenName, this.getValue(), stack); + this.recordToStack(this.store, this.hiddenName, this.getValue(), stack); for (var i = 0; i < stack.length; i++ ) { this.view[i].select(stack[i].store.indexOf(stack[i]), false, false ); }