From a2c3898adac1715e80deaa012130569a6f51136d Mon Sep 17 00:00:00 2001 From: Thierry Bugier Date: Thu, 25 Nov 2021 08:41:46 +0100 Subject: [PATCH] fix: redirection to wrong ticket in some cases Signed-off-by: Thierry Bugier --- setup.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.php b/setup.php index 980937f42..64097e0cf 100644 --- a/setup.php +++ b/setup.php @@ -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); }