diff --git a/gulliver/system/class.xmlform.php b/gulliver/system/class.xmlform.php index d785fb77e..2af106b22 100755 --- a/gulliver/system/class.xmlform.php +++ b/gulliver/system/class.xmlform.php @@ -3101,7 +3101,7 @@ class XmlForm_Field_RadioGroup extends XmlForm_Field { if( isset($this->linkType) && ($this->linkType == 1 || $this->linkType == "1") ){ $html .= '' . $option . ''; } else { - $html .= '' . $option . ''; + $html .= ''; } if(++$i==count($this->options)){ $html .= '      '.$this->renderHint(); @@ -3117,7 +3117,7 @@ class XmlForm_Field_RadioGroup extends XmlForm_Field { } elseif ($this->mode === 'view') { $html = ''; foreach ( $this->options as $optionName => $option ) { - $html .= '' . $option . '
'; + $html .= '
'; if($optionName == $value) $html .= ''; } @@ -3198,7 +3198,7 @@ class XmlForm_Field_CheckGroup extends XmlForm_Field $i=0; $html = ''; foreach ( $this->options as $optionName => $option ) { - $html .= '' . $option . ''; + $html .= ''; if(++$i==count($this->options)){ $html .= '      '.$this->renderHint(); } @@ -3208,7 +3208,7 @@ class XmlForm_Field_CheckGroup extends XmlForm_Field } elseif ($this->mode === 'view') { $html = ''; foreach ( $this->options as $optionName => $option ) { - $html .= '' . $option . '
'; + $html .= '
'; $html .= ''; } return $html; @@ -4791,14 +4791,6 @@ class xmlformTemplate extends Smarty if ($form->type == 'xmlform') { if ($v->type != 'checkgroup' && $v->type != 'radiogroup') { $result[$k] = ''; - } else { - if (is_array($v->options)) { - foreach ($v->options as $optionValue => $optionLabel) { - if (isset($form->fields[$k]->options[$optionValue])) { - $form->fields[$k]->options[$optionValue] = ''; - } - } - } } } if (! is_array ( $value )) {