Skip to content

Commit

Permalink
fix(issue): warnings with GLPI 9.3
Browse files Browse the repository at this point in the history
Signed-off-by: Thierry Bugier <tbugier@teclib.com>
  • Loading branch information
btry committed Apr 11, 2019
1 parent 947f75e commit 04791f4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions inc/issue.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -544,11 +544,12 @@ public static function giveItem($itemtype, $option_id, $data, $num) {
$content = '';
}
$link = FORMCREATOR_ROOTDOC . "/front/issue.form.php?id=".$id."&sub_itemtype=".$data['raw']['sub_itemtype'];
$key = 'id';
$tooltip = Html::showToolTip(nl2br(Html::Clean($content)), [
'applyto' => $itemtype.$data[$itemtype . '_' . $option_id][0]['id'],
'applyto' => $itemtype.$data['raw'][$key],
'display' => false,
]);
return '<a id="' . $itemtype.$data[$itemtype . '_' . $option_id][0]['id'] . '" href="' . $link . '">'
return '<a id="' . $itemtype.$data['raw'][$key] . '" href="' . $link . '">'
. sprintf(__('%1$s %2$s'), $name, $tooltip)
. '</a>';

Expand Down

0 comments on commit 04791f4

Please sign in to comment.