File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -174,7 +174,13 @@ function plugin_init_formcreator() {
174174 if (strpos ($ _SERVER ['REQUEST_URI ' ], "front/ticket.form.php " ) !== false ) {
175175 if (plugin_formcreator_replaceHelpdesk ()) {
176176 if (!isset ($ _POST ['update ' ])) {
177- Html::redirect ($ CFG_GLPI ["root_doc " ] . '/plugins/formcreator/front/issue.form.php?id= ' . $ _GET ['id ' ] . '&sub_itemtype=Ticket ' );
177+ $ decodedUrl = [];
178+ $ forceTab = '' ;
179+ parse_str ($ _SERVER ['QUERY_STRING ' ], $ decodedUrl );
180+ if (isset ($ decodedUrl ['forcetab ' ])) {
181+ Session::setActiveTab (Ticket::class, $ decodedUrl ['forcetab ' ]);
182+ }
183+ Html::redirect ($ CFG_GLPI ["root_doc " ] . '/plugins/formcreator/front/issue.form.php?id= ' . $ _GET ['id ' ] . '&sub_itemtype=Ticket ' . $ forceTab );
178184 }
179185 }
180186 }
You can’t perform that action at this time.
0 commit comments