Skip to content

Commit

Permalink
fix: redirection to wrong ticket in some cases
Browse files Browse the repository at this point in the history
Signed-off-by: Thierry Bugier <tbugier@teclib.com>
  • Loading branch information
btry committed Nov 25, 2021
1 parent d172843 commit a2c3898
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ function plugin_formcreator_redirect() {
// No formanswer found
Html::displayNotFoundError();
}
$ticket = Ticket::getById($itemTicket->fields['items_id']);
$ticket = Ticket::getById($itemTicket->fields['tickets_id']);
if ($ticket === false) {
Html::redirect($issue->getFormURLWithID($itemTicket->fields['items_id']) . $openItilFollowup);
}
Expand Down

0 comments on commit a2c3898

Please sign in to comment.