|
|
@@ -208,9 +208,13 @@ Ext.define('saas.view.document.kind.ChildForm', {
|
|
|
.then(function(localJson) {
|
|
|
me.setLoading(false);
|
|
|
if(localJson.success){
|
|
|
- var grid = form.ownerCt._parent ? form.ownerCt._parent.lookup('document-kind-Grid') : null;
|
|
|
+ var grid = form.ownerCt._parent;
|
|
|
if(grid){
|
|
|
- grid.store.load();
|
|
|
+ if(form.ownerCt._parent.lookup('document-kind-Grid')!=null){
|
|
|
+ form.ownerCt._parent.lookup('document-kind-Grid').store.load()
|
|
|
+ }else{
|
|
|
+ grid.store.load();
|
|
|
+ }
|
|
|
}
|
|
|
if(relativeField&&relativeValue&&form.ownerCt._parent){
|
|
|
var grid = form.ownerCt._parent.down('grid');
|