File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -186,9 +186,9 @@ public function displayExtended($options = []) {
186
186
if ($ item Instanceof PluginFormcreatorFormAnswer) {
187
187
$ item = $ this ->getTicketsForDisplay ($ options );
188
188
}
189
+ unset($ options ['_item ' ]);
189
190
190
- $ item ->showTabsContent ();
191
-
191
+ $ item ->showTabsContent ($ options );
192
192
}
193
193
194
194
/**
@@ -235,6 +235,7 @@ public function displaySimplified($options = []) {
235
235
if ($ item Instanceof PluginFormcreatorFormAnswer) {
236
236
$ item = $ this ->getTicketsForDisplay ($ options );
237
237
}
238
+ unset($ options ['_item ' ]);
238
239
239
240
// force recall of ticket in layout
240
241
$ old_layout = $ _SESSION ['glpilayout ' ];
@@ -265,7 +266,7 @@ public function displaySimplified($options = []) {
265
266
// No ticket associated to this issue or multiple tickets
266
267
// Show the form answers
267
268
echo '<div class"center"> ' ;
268
- $ item ->showTabsContent ();
269
+ $ item ->showTabsContent ($ options );
269
270
echo '</div> ' ;
270
271
}
271
272
Original file line number Diff line number Diff line change @@ -183,12 +183,15 @@ function plugin_init_formcreator() {
183
183
if (strpos ($ _SERVER ['REQUEST_URI ' ], "front/ticket.form.php " ) !== false ) {
184
184
if (!isset ($ _POST ['update ' ])) {
185
185
$ decodedUrl = [];
186
- $ forceTab = '' ;
186
+ $ openItilFollowup = '' ;
187
+ if (isset ($ _GET ['_openfollowup ' ])) {
188
+ $ openItilFollowup = '&_openfollowup=1 ' ;
189
+ }
187
190
parse_str ($ _SERVER ['QUERY_STRING ' ], $ decodedUrl );
188
191
if (isset ($ decodedUrl ['forcetab ' ])) {
189
192
Session::setActiveTab (Ticket::class, $ decodedUrl ['forcetab ' ]);
190
193
}
191
- Html::redirect (FORMCREATOR_ROOTDOC . '/front/issue.form.php?id= ' . $ _GET ['id ' ] . '&sub_itemtype=Ticket ' . $ forceTab );
194
+ Html::redirect (FORMCREATOR_ROOTDOC . '/front/issue.form.php?id= ' . $ _GET ['id ' ] . '&sub_itemtype=Ticket ' . $ openItilFollowup );
192
195
}
193
196
}
194
197
You can’t perform that action at this time.
0 commit comments