فهرست منبع

Merge branch 'fix/layout_appForm' into 'wrdp'

修复this.appForm为null的错误

See merge request o2oa/o2oa!3108
胡起 4 سال پیش
والد
کامیت
59ab79b663
1فایلهای تغییر یافته به همراه2 افزوده شده و 0 حذف شده
  1. 2 0
      o2web/source/x_component_process_Work/Main.js

+ 2 - 0
o2web/source/x_component_process_Work/Main.js

@@ -725,6 +725,8 @@ MWF.xApplication.process.Work.Main = new Class({
                 this.appForm.workAction = this.action;
                 this.appForm.app = this;
 
+                if  (layout.desktop.type !== "layout") layout.appForm = this.appForm;
+
                 if( this.$events && this.$events.queryLoadForm ){
                     this.appForm.addEvent( "queryLoad", function () {
                         this.fireEvent("queryLoadForm");