We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cf8f56f commit 77d3a32Copy full SHA for 77d3a32
setup.php
@@ -188,7 +188,15 @@ function plugin_init_formcreator() {
188
if (isset($decodedUrl['forcetab'])) {
189
Session::setActiveTab(Ticket::class, $decodedUrl['forcetab']);
190
}
191
- Html::redirect(FORMCREATOR_ROOTDOC . '/front/issue.form.php?id=' . $_GET['id'] . '&sub_itemtype=Ticket' . $openItilFollowup);
+ $issue = new PluginFormcreatorIssue();
192
+ $issue->getFromDBByCrit([
193
+ 'sub_itemtype' => Ticket::class,
194
+ 'original_id' => (int) $_GET['id']
195
+ ]);
196
+ if ($issue->isNewItem()) {
197
+ Html::displayNotFoundError();
198
+ }
199
+ Html::redirect($issue->getFormURLWithID($issue->getID()) . $openItilFollowup);
200
201
202
0 commit comments