Skip to content

Commit

Permalink
fix(issue): redirection when multiple tickets
Browse files Browse the repository at this point in the history
Signed-off-by: Thierry Bugier <[email protected]>
  • Loading branch information
btry committed Nov 26, 2021
1 parent 6ce6c00 commit 64eb8a5
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion inc/issue.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,15 @@ public function getTicketsForDisplay($options) {
}
} else {
// multiple tickets, no specified ticket then force ticket tab in form anser
Session::setActiveTab(PluginFormcreatorFormAnswer::class, 'Ticket$1');
if (isset($options['tickets_id'])) {
$ticket = Ticket::getById((int) $options['tickets_id']);
if ($ticket) {
$item = $ticket;
}
} else {
// multiple tickets, no specified ticket then force ticket tab in form anser
Session::setActiveTab(PluginFormcreatorFormAnswer::class, 'Ticket$1');
}
}
}

Expand Down

0 comments on commit 64eb8a5

Please sign in to comment.