From 04791f4a3b2cbd27a2aa07b91483a878ce544133 Mon Sep 17 00:00:00 2001 From: Thierry Bugier Date: Thu, 11 Apr 2019 14:37:27 +0200 Subject: [PATCH] fix(issue): warnings with GLPI 9.3 Signed-off-by: Thierry Bugier --- inc/issue.class.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/inc/issue.class.php b/inc/issue.class.php index f6bc3df7e..293c33634 100644 --- a/inc/issue.class.php +++ b/inc/issue.class.php @@ -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 '' + return '' . sprintf(__('%1$s %2$s'), $name, $tooltip) . '';