@@ -886,18 +886,15 @@ public static function showDomContainer($id, $item, $type = 'dom', $subtype = ''
886886 public static function showForTab ($ params )
887887 {
888888 $ item = $ params ['item ' ];
889- // var_dump($item);
890- if ($ item ->fields ['type ' ] == "" )
891- {
892- $ item ->fields ['type ' ] = $ params ['options ' ]['type ' ];
893- }
894- if ($ item ->fields ['itilcategories_id ' ] == "" )
889+
890+ if ($ item ->fields ['type ' ] == "" )
891+ {
892+ $ item ->fields ['type ' ] = $ params ['options ' ]['type ' ];
893+ }
894+ if ($ item ->fields ['itilcategories_id ' ] == "" )
895895 {
896896 $ item ->fields ['itilcategories_id ' ] = $ params ['options ' ]['itilcategories_id ' ];
897897 }
898- // var_dump($item->fields);
899- // var_dump($params);
900- Toolbox::logInFile ("FIELDS_LOG " , "[ Recieved parameters got item type ( {$ item ->fields ['type ' ]}) ] " );
901898
902899 $ functions = array_column (debug_backtrace (), 'function ' );
903900 $ subtype = isset ($ _SESSION ['glpi_tabs ' ][strtolower ($ item ::getType ())]) ? $ _SESSION ['glpi_tabs ' ][strtolower ($ item ::getType ())] : '' ;
@@ -980,11 +977,8 @@ public static function showForTab($params)
980977 }
981978 $ display_condition = new PluginFieldsContainerDisplayCondition ();
982979
983- Toolbox::logInFile ("FIELDS_LOG " , "[ Item with Container ID {$ c_id } and type ( {$ item ->fields ['type ' ]}) ] " );
984-
985980 if ($ display_condition ->computeDisplayContainer ($ item , $ c_id ))
986- {
987- Toolbox::logInFile ("FIELDS_LOG " , " [ WE COMPUTED THAT WE NEED TO SHOW CONTAINER OAOAOOA ] " );
981+ {
988982 self ::showDomContainer (
989983 $ c_id ,
990984 $ item ,
@@ -993,10 +987,7 @@ public static function showForTab($params)
993987 $ field_options ?? [],
994988 );
995989 }
996- else
997- {
998- Toolbox::logInFile ("FIELDS_LOG " , " [ NO NEED TO SHOW CONTAINER AAAAAARGHHHHHH ] " );
999- }
990+
1000991 if (strpos ($ current_url , 'helpdesk.public.php ' ) !== false || strpos ($ current_url , 'tracking.injector.php ' ) !== false ) {
1001992 echo '</div> ' ;
1002993 }
0 commit comments