From c679250b5c673f538435a370f1e22196181e88d2 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 27 Jul 2021 10:23:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=81=E7=A8=8B=E4=BF=9D=E5=AD=98=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E7=9A=84originalData=E6=95=B0=E6=8D=AE=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- o2web/source/x_component_process_Xform/Form.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/o2web/source/x_component_process_Xform/Form.js b/o2web/source/x_component_process_Xform/Form.js index 72ada1bae6..c449d85dee 100644 --- a/o2web/source/x_component_process_Xform/Form.js +++ b/o2web/source/x_component_process_Xform/Form.js @@ -1571,17 +1571,19 @@ MWF.xApplication.process.Xform.Form = MWF.APPForm = new Class( this.toWordSaveList.each(function(editor){ if (editor.docToWord) p.push(new Promise(function(resolve){ editor.docToWord(resolve) })); }); + var copyData = Object.clone(data); Promise.all(p).then(function(){ this.workAction.saveData(function () { this.businessData.originalData = null; - this.businessData.originalData = Object.clone(data); + this.businessData.originalData = copyData; if(callback)callback(); }.bind(this), failure, this.businessData.work.id, this.modifedData); }.bind(this)); }else{ + var copyData = Object.clone(data); this.workAction.saveData(function () { this.businessData.originalData = null; - this.businessData.originalData = Object.clone(data); + this.businessData.originalData = copyData; if(callback)callback(); }.bind(this), failure, this.businessData.work.id, this.modifedData); } -- GitLab