@@ -267,7 +267,7 @@ function prepareInputForAdd($input) {
267
267
}
268
268
}
269
269
}
270
-
270
+
271
271
$ input ['itemtypes ' ] = (isset ($ input ['itemtypes ' ])) ? json_encode ($ input ['itemtypes ' ], TRUE ): NULL ;
272
272
273
273
return $ input ;
@@ -414,9 +414,9 @@ public function showForm($ID, $options=array()) {
414
414
echo $ types [$ this ->fields ["type " ]];
415
415
} else {
416
416
Dropdown::showFromArray ('type ' ,
417
- self ::getTypes (),
417
+ self ::getTypes (),
418
418
array ('value ' => $ this ->fields ["type " ],
419
- 'rand ' => $ rand ));
419
+ 'rand ' => $ rand ));
420
420
$ params = array ('type ' => '__VALUE__ ' ,
421
421
'itemtype ' => $ this ->fields ["itemtypes " ],
422
422
'subtype ' => $ this ->fields ['subtype ' ],
@@ -689,8 +689,8 @@ function getTabNameForItem(CommonGLPI $item, $withtemplate=0) {
689
689
}
690
690
if ( in_array ( $ item ->fields ['entities_id ' ], $ entities ) ) {
691
691
$ tabs_entries [$ tab_name ] = $ tab_label ;
692
- }
693
- }
692
+ }
693
+ }
694
694
}
695
695
}
696
696
return $ tabs_entries ;
@@ -1015,7 +1015,7 @@ static function preItemUpdate(CommonDBTM $item) {
1015
1015
if ( !in_array ( $ item ->fields ['entities_id ' ], $ entities ) ) {
1016
1016
return false ;
1017
1017
}
1018
-
1018
+
1019
1019
//find fields associated to found container
1020
1020
$ field_obj = new PluginFieldsField ();
1021
1021
$ fields = $ field_obj ->find ("plugin_fields_containers_id = $ c_id AND type != 'header' " , "ranking " );
0 commit comments