Skip to content

Commit 63f3cee

Browse files
committed
fix: unexpected redirection while editing a ticket as post-only + service catalog
fix: #1557 Signed-off-by: Thierry Bugier <[email protected]>
1 parent ada55a0 commit 63f3cee

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

setup.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,9 @@ function plugin_init_formcreator() {
155155
}
156156
if (strpos($_SERVER['REQUEST_URI'], "front/ticket.form.php") !== false) {
157157
if (plugin_formcreator_replaceHelpdesk()) {
158-
Html::redirect($CFG_GLPI["root_doc"] . '/plugins/formcreator/front/issue.form.php?id=' . $_GET['id'] . '&sub_itemtype=Ticket');
158+
if (!isset($_POST['update'])) {
159+
Html::redirect($CFG_GLPI["root_doc"] . '/plugins/formcreator/front/issue.form.php?id=' . $_GET['id'] . '&sub_itemtype=Ticket');
160+
}
159161
}
160162
}
161163

0 commit comments

Comments
 (0)