Skip to content

Commit

Permalink
fix(issue): show ticket in service catalog
Browse files Browse the repository at this point in the history
  • Loading branch information
btry committed Jan 26, 2022
1 parent c8b9ae4 commit e83c779
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions inc/issue.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -332,8 +332,6 @@ public function displayExtended($options = []) {
* @see CommonGLPI::display()
*/
public function displaySimplified($options = []) {
global $CFG_GLPI;

if (!isset($this->fields['itemtype'])) {
Html::displayNotFoundError();
}
Expand Down Expand Up @@ -420,10 +418,8 @@ public function displaySimplified($options = []) {
}
}

echo "<div class='timeline_box'>";
$rand = mt_rand();
$item->showTimelineForm($rand);
$item->showTimeline($rand);
echo "<div class='tab-content p-2 flex-grow-1 card border-start-0'>";
$item->showForm($item->getID());
echo "</div>";
} else {
// No ticket associated to this issue or multiple tickets
Expand Down

0 comments on commit e83c779

Please sign in to comment.