@@ -288,12 +288,10 @@ public function displayExtended($options = []) {
288288 }
289289 $ itemtype = $ this ->fields ['itemtype ' ];
290290 if (!class_exists ($ itemtype )) {
291- PluginFormcreatorCommon::restoreLayout ();
292291 Html::displayNotFoundError ();
293292 }
294293 $ item = new $ itemtype ();
295294 if (!$ item ->getFromDB ($ this ->fields ['items_id ' ])) {
296- PluginFormcreatorCommon::restoreLayout ();
297295 Html::displayNotFoundError ();
298296 }
299297
@@ -321,7 +319,6 @@ public function displayExtended($options = []) {
321319 $ this ->showNavigationHeader ($ options );
322320
323321 if (!$ item ->canViewItem ()) {
324- PluginFormcreatorCommon::restoreLayout ();
325322 Html::displayNotFoundError ();
326323 }
327324
@@ -337,12 +334,10 @@ public function displaySimplified($options = []) {
337334 }
338335 $ itemtype = $ this ->fields ['itemtype ' ];
339336 if (!class_exists ($ itemtype )) {
340- PluginFormcreatorCommon::restoreLayout ();
341337 Html::displayNotFoundError ();
342338 }
343339 $ item = new $ itemtype ();
344340 if (!$ item ->getFromDB ($ this ->fields ['items_id ' ])) {
345- PluginFormcreatorCommon::restoreLayout ();
346341 Html::displayNotFoundError ();
347342 }
348343
@@ -398,10 +393,6 @@ public function displaySimplified($options = []) {
398393 }
399394 unset($ options ['_item ' ]);
400395
401- // force recall of ticket in layout
402- PluginFormcreatorCommon::saveLayout ();
403- $ _SESSION ['glpilayout ' ] = "lefttab " ;
404-
405396 if ($ item instanceof Ticket) {
406397 //Tickets without form associated or single ticket for an answer
407398 $ satisfaction = new TicketSatisfaction ();
@@ -428,9 +419,6 @@ public function displaySimplified($options = []) {
428419 $ item ->showTabsContent ($ options );
429420 echo '</div> ' ;
430421 }
431-
432- // restore layout
433- PluginFormcreatorCommon::restoreLayout ();
434422 }
435423
436424 /**
0 commit comments