Skip to content

Commit

Permalink
fix: unexpected redirection while editing a ticket as post-only + ser…
Browse files Browse the repository at this point in the history
…vice catalog

fix: #1557
Signed-off-by: Thierry Bugier <tbugier@teclib.com>
  • Loading branch information
btry committed Nov 4, 2019
1 parent ada55a0 commit 63f3cee
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,9 @@ 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');
if (!isset($_POST['update'])) {
Html::redirect($CFG_GLPI["root_doc"] . '/plugins/formcreator/front/issue.form.php?id=' . $_GET['id'] . '&sub_itemtype=Ticket');
}
}
}

Expand Down

0 comments on commit 63f3cee

Please sign in to comment.