BUG-14044 The description in input documents doesn't work in arabic language

The description in input documents doesn't work in arabic language.
This commit is contained in:
norahmollo
2014-02-13 11:21:18 -04:00
parent 793cd306bf
commit 85cc8b26c5

View File

@@ -320,7 +320,7 @@ try {
$oHeadPublisher = & headPublisher::getSingleton();
$titleDocument = "<h3>" . $Fields['INP_DOC_TITLE'] . "<br><small>" . G::LoadTranslation( 'ID_INPUT_DOCUMENT' ) . "</small></h3>";
if ($Fields['INP_DOC_DESCRIPTION']) {
$titleDocument .= " " . str_replace( "\n", "", str_replace( "'", "\'", nl2br( htmlentities( utf8_decode( $Fields['INP_DOC_DESCRIPTION'] ) ) ) ) ) . "";
$titleDocument .= " " . str_replace( "\n", "", str_replace( "'", "\'", nl2br( html_entity_decode($Fields['INP_DOC_DESCRIPTION'], ENT_COMPAT | ENT_HTML401, "UTF-8") ) ) ) . "";
}
$oHeadPublisher->addScriptCode( "documentName='{$titleDocument}';" );