Browse Source

Merge branch 'fix/form_radio' into 'develop'

Merge of fix/form_radio to develop 修正表单单选框选项不显示的问题

See merge request o2oa/o2oa!819
胡起 5 years ago
parent
commit
3b21bd80d0
1 changed files with 2 additions and 2 deletions
  1. 2 2
      o2web/source/x_component_process_Xform/Radio.js

+ 2 - 2
o2web/source/x_component_process_Xform/Radio.js

@@ -113,7 +113,7 @@ MWF.xApplication.process.Xform.Radio = MWF.APPRadio =  new Class({
 
                 var radio = new Element("input", {
                     "type": "radio",
-                    "name": this.json.properties.name || flag+this.json.id,
+                    "name": (this.json.properties && this.json.properties.name) ? this.json.properties.name : flag+this.json.id,
                     "value": value,
                     "showText": text,
                     "styles": this.json.buttonStyles
@@ -253,4 +253,4 @@ MWF.xApplication.process.Xform.Radio = MWF.APPRadio =  new Class({
         }
     }
 	
-}); 
+});