From: Alan Knowles Date: Mon, 10 Feb 2020 06:29:40 +0000 (+0800) Subject: Roo/form/ComboNested.js X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=c77e2e6e548e55a4fabc2ec5f5cd49bf765edfa4 Roo/form/ComboNested.js --- diff --git a/Roo/form/ComboNested.js b/Roo/form/ComboNested.js index 9d41e3e540..36e874b003 100644 --- a/Roo/form/ComboNested.js +++ b/Roo/form/ComboNested.js @@ -297,7 +297,7 @@ Roo.extend(Roo.form.ComboNested, Roo.form.ComboBox, { ((this.listWidth * 3 || Math.max(this.wrap.getWidth(), this.minListWidth)) - this.list.getFrameWidth('lr')) / 3 ); var data = typeof(rec.data.cn) == 'undefined' ? [] : rec.data.cn; - var dl = typeof(data.data.cn) != 'undefined' ? data.total : data.length; ///json is a nested response.. + var dl = typeof(data.data) != 'undefined' ? data.total : data.length; ///json is a nested response.. this.stores[opts.list+1].loadData( data ); this.views[opts.list+1].getEl().setHeight( this.innerLists[0].getHeight()); this.views[opts.list+1].getEl().setStyle({ display : dl ? 'block' : 'none' });