Explorar o código

Merge branch 'cherry-pick-b5361e1d' into 'develop'

Merge branch 'fix/Process.opinion_empty_execption' into 'wrdp'

See merge request o2oa/o2oa!1163
蔡祥熠 %!s(int64=5) %!d(string=hai) anos
pai
achega
063215149e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      o2web/source/x_component_process_Xform/Form.js

+ 1 - 1
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];