Skip to content

Commit

Permalink
fix(issue): wrong ticket disdplay
Browse files Browse the repository at this point in the history
fix #859
  • Loading branch information
btry committed Dec 21, 2017
1 parent d086006 commit 5e33407
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions inc/issue.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,9 @@ public function displayExtended($options = []) {

// if ticket(s) exist(s), show it/them
$options['_item'] = $item;
$item = $this->getTicketsForDisplay($options);
if ($item Instanceof PluginFormcreatorForm_Answer) {
$item = $this->getTicketsForDisplay($options);
}

$item->showTabsContent();

Expand Down Expand Up @@ -191,7 +193,9 @@ public function displaySimplified($options = []) {

// retrieve associated tickets
$options['_item'] = $item;
$item = $this->getTicketsForDisplay($options);
if ($item Instanceof PluginFormcreatorForm_Answer) {
$item = $this->getTicketsForDisplay($options);
}

// force recall of ticket in layout
$old_layout = $_SESSION['glpilayout'];
Expand Down

0 comments on commit 5e33407

Please sign in to comment.