Skip to content

Commit 266d9d3

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 495c8dc commit 266d9d3

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
@@ -173,7 +173,9 @@ function plugin_init_formcreator() {
173173
}
174174
if (strpos($_SERVER['REQUEST_URI'], "front/ticket.form.php") !== false) {
175175
if (plugin_formcreator_replaceHelpdesk()) {
176-
Html::redirect($CFG_GLPI["root_doc"] . '/plugins/formcreator/front/issue.form.php?id=' . $_GET['id'] . '&sub_itemtype=Ticket');
176+
if (!isset($_POST['update'])) {
177+
Html::redirect($CFG_GLPI["root_doc"] . '/plugins/formcreator/front/issue.form.php?id=' . $_GET['id'] . '&sub_itemtype=Ticket');
178+
}
177179
}
178180
}
179181

0 commit comments

Comments
 (0)