Skip to content

Commit 001a82f

Browse files
committed
fix(form_answer): fix compatibility with GLPI 9.4
Signed-off-by: btry <tbugier@teclib.com>
1 parent 0754b5f commit 001a82f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

inc/form_answer.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -894,7 +894,7 @@ private function transformAnswerValue(PluginFormcreatorQuestion $question, $valu
894894
$answer_value = str_replace('\\r\\n', '\n', $answer_value);
895895
}
896896
} else {
897-
if ($CFG_GLPI['use_rich_text']) {
897+
if (version_compare(PluginFormcreatorCommon::getGlpiVersion(), 9.4) >= 0 || $CFG_GLPI['use_rich_text']) {
898898
$answer_value = html_entity_decode($value);
899899
} else {
900900
$answer_value = $value;

0 commit comments

Comments
 (0)