From db56d3e5125574618d9a853699857b26c3ec8149 Mon Sep 17 00:00:00 2001 From: Thierry Bugier Date: Tue, 23 Nov 2021 13:56:01 +0100 Subject: [PATCH] fix(issue): call to deprecated method broke counters Signed-off-by: Thierry Bugier --- inc/issue.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/inc/issue.class.php b/inc/issue.class.php index b01d8e124..eddfc7791 100644 --- a/inc/issue.class.php +++ b/inc/issue.class.php @@ -33,6 +33,7 @@ die("Sorry. You can't access this file directly"); } +use Glpi\Toolbox\RichText; class PluginFormcreatorIssue extends CommonDBTM { static $rightname = 'ticket'; @@ -797,7 +798,7 @@ public static function giveItem($itemtype, $option_id, $data, $num) { $link = self::getFormURLWithID($id) . "&itemtype=".$data['raw']['itemtype']; $link = self::getFormURLWithID($data['id']); $key = 'id'; - $tooltip = Html::showToolTip(nl2br(Html::Clean($content)), [ + $tooltip = Html::showToolTip(nl2br(RichText::getTextFromHtml($content)), [ 'applyto' => $itemtype.$data['raw'][$key], 'display' => false, ]);