diff --git a/inc/consumable.class.php b/inc/consumable.class.php index ec796c62211..90496f19c02 100644 --- a/inc/consumable.class.php +++ b/inc/consumable.class.php @@ -226,7 +226,7 @@ static function processMassiveActionsForOneItemtype(MassiveAction $ma, CommonDBT $ma->addMessage($item->getErrorMessage(ERROR_RIGHT)); } } - Event::log($item->fields['consumableitems_id'], "consumables", 5, "inventory", + Event::log($item->fields['consumableitems_id'], "consumableitems", 5, "inventory", //TRANS: %s is the user login sprintf(__('%s gives a consumable'), $_SESSION["glpiname"])); } else { diff --git a/inc/event.class.php b/inc/event.class.php index f2ce275ab5b..94610c99031 100644 --- a/inc/event.class.php +++ b/inc/event.class.php @@ -207,10 +207,10 @@ static function displayItemLogID($type, $items_id) { $type = getSingular($type); $url = ''; if ($item = getItemForItemtype($type)) { - $url = $item->getFormURL(); + $url = $item->getFormURLWithID($items_id); } if (!empty($url)) { - echo "".$items_id.""; + echo "".$items_id.""; } else { echo $items_id; }