Skip to content

Commit 0bb64c5

Browse files
committed
fix(ticket): redirect to service catalog when viewing ticket
Signed-off-by: btry <tbugier@teclib.com>
1 parent 993576d commit 0bb64c5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

setup.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,11 @@ function plugin_init_formcreator() {
153153
}
154154
}
155155
}
156+
if (strpos($_SERVER['REQUEST_URI'], "front/ticket.form.php") !== false) {
157+
if (plugin_formcreator_replaceHelpdesk()) {
158+
Html::redirect($CFG_GLPI["root_doc"] . '/plugins/formcreator/front/issue.form.php?id=' . $_GET['id'] . '&sub_itemtype=Ticket');
159+
}
160+
}
156161

157162
// Massive Action definition
158163
$PLUGIN_HOOKS['use_massive_action']['formcreator'] = 1;

0 commit comments

Comments
 (0)