Skip to content

Commit

Permalink
fix(issues): Tooltip consistency with core
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrienClairembault authored and btry committed Dec 29, 2022
1 parent 9372972 commit c45d215
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions inc/issue.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -893,9 +893,10 @@ public static function giveItem($itemtype, $option_id, $data, $num) {
}

$key = 'id';
$tooltip = Html::showToolTip(nl2br(RichText::getTextFromHtml($content)), [
'applyto' => $itemtype.$data['raw'][$key],
'display' => false,
$tooltip = Html::showToolTip(RichText::getEnhancedHtml($content), [
'applyto' => $itemtype.$data['raw'][$key],
'display' => false,
'images_gallery' => false
]);
return '<a id="' . $itemtype.$data['raw'][$key] . '" href="' . $link . '">'
. sprintf(__('%1$s %2$s'), $name, $tooltip)
Expand Down

0 comments on commit c45d215

Please sign in to comment.