From d86b703ec21bd2bd3e194e1c5f5382d4259e9b09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=94=A1=E7=A5=A5=E7=86=A0?= Date: Thu, 16 Jul 2020 10:46:26 +0000 Subject: [PATCH] Merge branch 'fix/Process.opinion_empty_execption' into 'wrdp' MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Merge of fix/Process.opinion_empty_execption to wrdp See merge request o2oa/o2oa!1162 (cherry picked from commit d2d1199828d69b21bd5399a55d3c3767e5b10512) 2cefcb84 修复提交的时候意见可能未被清空的问题 --- o2web/source/x_component_process_Xform/Form.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/o2web/source/x_component_process_Xform/Form.js b/o2web/source/x_component_process_Xform/Form.js index 3d2ad00d3c..d7cdf34cb8 100644 --- a/o2web/source/x_component_process_Xform/Form.js +++ b/o2web/source/x_component_process_Xform/Form.js @@ -899,7 +899,7 @@ MWF.xApplication.process.Xform.Form = MWF.APPForm = new Class({ this.saveOpinion(module); var key = layout.desktop.session.user.id; - if( typeOf( data[id] ) === "object" && data[id][key] ){ + if( typeOf( data[id] ) === "object" && typeOf(data[id][key])==="string" ){ delete data[id][key] } // delete data[id]; -- GitLab