diff --git a/o2web/source/x_component_process_Xform/Form.js b/o2web/source/x_component_process_Xform/Form.js index 72ada1bae63255ef968bce15500809c863a089df..c449d85dee681afb97cd7ed98a5d43210b593725 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); }