File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -488,6 +488,21 @@ function plugin_formcreator_redirect() {
488
488
489
489
Html::redirect ($ issue ->getFormURLWithID ($ issue ->getID ()) . '&tickets_id= ' . $ itemTicket ->fields ['tickets_id ' ]);
490
490
}
491
+
492
+ $ pages = [
493
+ 'front/reservationitem.php ' => FORMCREATOR_ROOTDOC . '/front/reservationitem.php ' ,
494
+ 'front/helpdesk.faq.php ' => FORMCREATOR_ROOTDOC . '/front/wizard.php ' ,
495
+ 'front/ticket.php ' => FORMCREATOR_ROOTDOC . '/front/issue.php ' ,
496
+ ];
497
+ foreach ($ pages as $ srcPage => $ dstPage ) {
498
+ if (strpos ($ _SERVER ['REQUEST_URI ' ], $ srcPage ) !== false && strpos ($ _SERVER ['REQUEST_URI ' ], $ dstPage ) === false ) {
499
+ if ($ srcPage == 'front/reservationitem.php ' ) {
500
+ $ _SESSION ['plugin_formcreator ' ]['redirected ' ]['POST ' ] = $ _POST ;
501
+ }
502
+ Html::redirect ($ dstPage );
503
+ break ;
504
+ }
505
+ }
491
506
}
492
507
493
508
function plugin_formcreator_options () {
You can’t perform that action at this time.
0 commit comments