Merge of fix/Process.opinion_empty_execption to wrdp See merge request o2oa/o2oa!1162 (cherry picked from commit b5361e1d4b1d15363feb0daedd3c5318984bd279) 2cefcb84 修复提交的时候意见可能未被清空的问题
@@ -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];