Skip to content

Commit

Permalink
fix(issue): call to deprecated method
Browse files Browse the repository at this point in the history
broke counters

Signed-off-by: Thierry Bugier <tbugier@teclib.com>
  • Loading branch information
btry committed Nov 23, 2021
1 parent a38c231 commit db56d3e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion inc/issue.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
die("Sorry. You can't access this file directly");
}

use Glpi\Toolbox\RichText;
class PluginFormcreatorIssue extends CommonDBTM {
static $rightname = 'ticket';

Expand Down Expand Up @@ -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,
]);
Expand Down

0 comments on commit db56d3e

Please sign in to comment.