Roo/form/ComboNested.js
authorAlan Knowles <alan@roojs.com>
Fri, 28 Feb 2020 08:22:48 +0000 (16:22 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 28 Feb 2020 08:22:48 +0000 (16:22 +0800)
Roo/form/ComboNested.js

index e1fefa9..8f72421 100644 (file)
@@ -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 );
        }