Skip to content

Commit 04791f4

Browse files
committed
fix(issue): warnings with GLPI 9.3
Signed-off-by: Thierry Bugier <tbugier@teclib.com>
1 parent 947f75e commit 04791f4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

inc/issue.class.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -544,11 +544,12 @@ public static function giveItem($itemtype, $option_id, $data, $num) {
544544
$content = '';
545545
}
546546
$link = FORMCREATOR_ROOTDOC . "/front/issue.form.php?id=".$id."&sub_itemtype=".$data['raw']['sub_itemtype'];
547+
$key = 'id';
547548
$tooltip = Html::showToolTip(nl2br(Html::Clean($content)), [
548-
'applyto' => $itemtype.$data[$itemtype . '_' . $option_id][0]['id'],
549+
'applyto' => $itemtype.$data['raw'][$key],
549550
'display' => false,
550551
]);
551-
return '<a id="' . $itemtype.$data[$itemtype . '_' . $option_id][0]['id'] . '" href="' . $link . '">'
552+
return '<a id="' . $itemtype.$data['raw'][$key] . '" href="' . $link . '">'
552553
. sprintf(__('%1$s %2$s'), $name, $tooltip)
553554
. '</a>';
554555

0 commit comments

Comments
 (0)