File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -887,6 +887,15 @@ public static function showForTab($params)
887
887
{
888
888
$ item = $ params ['item ' ];
889
889
890
+ if ($ item ->fields ['type ' ] == "" )
891
+ {
892
+ $ item ->fields ['type ' ] = $ params ['options ' ]['type ' ];
893
+ }
894
+ if ($ item ->fields ['itilcategories_id ' ] == "" )
895
+ {
896
+ $ item ->fields ['itilcategories_id ' ] = $ params ['options ' ]['itilcategories_id ' ];
897
+ }
898
+
890
899
$ functions = array_column (debug_backtrace (), 'function ' );
891
900
$ subtype = isset ($ _SESSION ['glpi_tabs ' ][strtolower ($ item ::getType ())]) ? $ _SESSION ['glpi_tabs ' ][strtolower ($ item ::getType ())] : '' ;
892
901
$ type = substr ($ subtype , -strlen ('$main ' )) === '$main '
@@ -967,15 +976,6 @@ public static function showForTab($params)
967
976
echo "<div id=' {$ html_id }'> " ;
968
977
}
969
978
$ display_condition = new PluginFieldsContainerDisplayCondition ();
970
-
971
- if ($ item ->fields ['type ' ] == "" )
972
- {
973
- $ item ->fields ['type ' ] = $ params ['options ' ]['type ' ];
974
- }
975
- if ($ item ->fields ['itilcategories_id ' ] == "" )
976
- {
977
- $ item ->fields ['itilcategories_id ' ] = $ params ['options ' ]['itilcategories_id ' ];
978
- }
979
979
980
980
if ($ display_condition ->computeDisplayContainer ($ item , $ c_id ))
981
981
{
You can’t perform that action at this time.
0 commit comments