/** * Method to set fields as read only, when the depend on some features * that are enabled * @since 0.85+2.4.0 */ static function addReadOnlyFields(PluginGenericobjectType $type) { global $GO_READONLY_FIELDS; if ($type->canBeReserved()) { $GO_READONLY_FIELDS[] = 'users_id'; $GO_READONLY_FIELDS[] = 'locations_id'; } if ($type->canUseGlobalSearch()) { $GO_READONLY_FIELDS[] = 'serial'; $GO_READONLY_FIELDS[] = 'otherserial'; $GO_READONLY_FIELDS[] = 'locations_id'; $GO_READONLY_FIELDS[] = 'states_id'; $GO_READONLY_FIELDS[] = 'users_id'; $GO_READONLY_FIELDS[] = 'groups_id'; $GO_READONLY_FIELDS[] = 'manufacturers_id'; $GO_READONLY_FIELDS[] = 'users_id_tech'; } }