Skip to content

Commit

Permalink
fix(issue): update handling of url in emai: notifications
Browse files Browse the repository at this point in the history
Signed-off-by: Thierry Bugier <tbugier@teclib.com>
  • Loading branch information
btry committed Feb 4, 2021
1 parent cf8f56f commit 77d3a32
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,15 @@ function plugin_init_formcreator() {
if (isset($decodedUrl['forcetab'])) {
Session::setActiveTab(Ticket::class, $decodedUrl['forcetab']);
}
Html::redirect(FORMCREATOR_ROOTDOC . '/front/issue.form.php?id=' . $_GET['id'] . '&sub_itemtype=Ticket' . $openItilFollowup);
$issue = new PluginFormcreatorIssue();
$issue->getFromDBByCrit([
'sub_itemtype' => Ticket::class,
'original_id' => (int) $_GET['id']
]);
if ($issue->isNewItem()) {
Html::displayNotFoundError();
}
Html::redirect($issue->getFormURLWithID($issue->getID()) . $openItilFollowup);
}
}

Expand Down

0 comments on commit 77d3a32

Please sign in to comment.