BUGS 14025 and 14476 IMPROVEMENETS

This commit is contained in:
Julio Cesar Laura
2014-04-10 12:52:13 -04:00
committed by Erik Amaru Ortiz
parent 2731737fcd
commit e97fcdc5c8

View File

@@ -1491,7 +1491,10 @@ class XmlForm_Field_Suggest extends XmlForm_Field_SimpleText //by neyek
return $str; return $str;
} }
} else { } else {
return $this->htmlentities( $formVariableValue, ENT_COMPAT, 'utf-8' ); $html = '<span id="form[' . $this->name . ']">';
$html .= $this->htmlentities($formVariableValue, ENT_COMPAT, 'utf-8');
$html .= '</span>';
return $html;
} }
} }
@@ -2682,7 +2685,7 @@ class XmlForm_Field_YesNo extends XmlForm_Field
} }
} else { } else {
//VIEW MODE //VIEW MODE
$html .= '<span id=" ' . $this->name . ' ">'; $html .= '<span id="' . $this->name . '">';
$html .= ($value === '0') ? G::LoadTranslation( 'ID_NO_VALUE' ) : G::LoadTranslation( 'ID_YES_VALUE' ); $html .= ($value === '0') ? G::LoadTranslation( 'ID_NO_VALUE' ) : G::LoadTranslation( 'ID_YES_VALUE' );
$html .= '<input '; $html .= '<input ';
$html .= 'id="form[' . $this->name . ']" '; $html .= 'id="form[' . $this->name . ']" ';