@@ -162,7 +162,7 @@ Ext.define('saas.view.core.dbfind.DbfindTrigger', {
},
judge:function(f){
- if(f.ownerCt.xtype.trim().toUpperCase().indexOf('QUERYFORMPANEL')>-1||f.ownerCt.ownerCt.xtype.trim().toUpperCase().indexOf('BASEPANEL')>-1){
+ if(f.ownerCt.xtype.trim().toUpperCase().indexOf('QUERYFORMPANEL')>-1||(f.ownerCt.ownerCt&&f.ownerCt.ownerCt.xtype.trim().toUpperCase().indexOf('BASEPANEL')>-1)){
f.belong = 'form';
return f.ownerCt.ownerCt
}else if(f.ownerCt.xtype.trim().toUpperCase().indexOf('FORM')>-1){