diff --git a/inc/ticket.class.php b/inc/ticket.class.php
index 4d798a53587..22b971f5b91 100644
--- a/inc/ticket.class.php
+++ b/inc/ticket.class.php
@@ -4206,23 +4206,22 @@ class='pointer' src='".$CFG_GLPI["root_doc"]."/pics/showselect.png'>";
}
echo $tt->getEndHiddenFieldValue('itemtype', $this);
} else {
- if ($canupdate
- || $canupdate_descr) {
// display associated elements
- $item_tickets = getAllDatasFromTable(getTableForItemType('Item_Ticket'),
- "`tickets_id`='".$ID."'");
- $i = 0;
- foreach ($item_tickets as $itdata) {
- if ($i >= 5) {
- echo "".
- __('Display all items')." (".count($item_tickets).")";
- break;
- }
- $item = new $itdata['itemtype'];
- $item->getFromDB($itdata['items_id']);
- echo $item->getTypeName(1).": ".$item->getLink(array('comments' => true))."
";
- $i++;
+ $item_tickets = getAllDatasFromTable(
+ getTableForItemType('Item_Ticket'),
+ "`tickets_id`='".$ID."'");
+ $i = 0;
+ foreach ($item_tickets as $itdata) {
+ if ($i >= 5) {
+ echo ""
+ .__('Display all items')." (".count($item_tickets).")";
+ break;
}
+ $item = new $itdata['itemtype'];
+ $item->getFromDB($itdata['items_id']);
+ echo $item->getTypeName(1).": ".$item->getLink(array('comments' => true))."
";
+ $i++;
}
}