Skip to content

Commit

Permalink
fix(ticket): redirect to service catalog when viewing ticket
Browse files Browse the repository at this point in the history
Signed-off-by: btry <tbugier@teclib.com>
  • Loading branch information
btry committed Nov 19, 2018
1 parent 993576d commit 0bb64c5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,11 @@ function plugin_init_formcreator() {
}
}
}
if (strpos($_SERVER['REQUEST_URI'], "front/ticket.form.php") !== false) {
if (plugin_formcreator_replaceHelpdesk()) {
Html::redirect($CFG_GLPI["root_doc"] . '/plugins/formcreator/front/issue.form.php?id=' . $_GET['id'] . '&sub_itemtype=Ticket');
}
}

// Massive Action definition
$PLUGIN_HOOKS['use_massive_action']['formcreator'] = 1;
Expand Down

0 comments on commit 0bb64c5

Please sign in to comment.