Skip to content

Commit

Permalink
fix(form_answer): fix compatibility with GLPI 9.4
Browse files Browse the repository at this point in the history
Signed-off-by: btry <tbugier@teclib.com>
  • Loading branch information
btry committed Jul 18, 2018
1 parent 0754b5f commit 001a82f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/form_answer.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -894,7 +894,7 @@ private function transformAnswerValue(PluginFormcreatorQuestion $question, $valu
$answer_value = str_replace('\\r\\n', '\n', $answer_value);
}
} else {
if ($CFG_GLPI['use_rich_text']) {
if (version_compare(PluginFormcreatorCommon::getGlpiVersion(), 9.4) >= 0 || $CFG_GLPI['use_rich_text']) {
$answer_value = html_entity_decode($value);
} else {
$answer_value = $value;
Expand Down

0 comments on commit 001a82f

Please sign in to comment.