Просмотр исходного кода

Merge branch 'fix/Process.datagrid_delete_last_data_execption' into 'develop'

Merge of fix/【流程管理】修复数据网格删除最后一条数据保存后仍存在的问题 to develop

See merge request o2oa/o2oa!533
蔡祥熠 5 лет назад
Родитель
Сommit
70c613675a

+ 1 - 1
o2web/source/x_component_process_Xform/DatagridMobile.js

@@ -1153,7 +1153,7 @@ MWF.xApplication.process.Xform.DatagridMobile = new Class({
 
             this._setBusinessData(this.gridData);
 
-            return (this.gridData.data.length) ? this.gridData : null;
+            return (this.gridData.data.length) ? this.gridData : {data:[]};
         }else{
             return this._getBusinessData();
         }

+ 1 - 1
o2web/source/x_component_process_Xform/DatagridPC.js

@@ -1003,7 +1003,7 @@ MWF.xApplication.process.Xform.DatagridPC = new Class({
 
             this._setBusinessData(this.gridData);
 
-            return (this.gridData.data.length) ? this.gridData : null;
+            return (this.gridData.data.length) ? this.gridData : {data:[]};
         }else{
             return this._getBusinessData();
         }