Skip to content

Commit fc9f6c0

Browse files
committed
fix solution followup property
1 parent ec9acca commit fc9f6c0

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

src/Glpi/Api/HL/Controller/ITILController.php

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -721,7 +721,24 @@ public static function getRawKnownSchemas(): array
721721
- 4: Refused
722722
EOT,
723723
],
724-
'approval_followup' => self::getDropdownTypeSchema(class: ITILFollowup::class, full_schema: 'Followup') + ['x-version-introduced' => '2.1.0'],
724+
'approval_followup' => [
725+
'x-version-introduced' => '2.1.0',
726+
'type' => Doc\Schema::TYPE_OBJECT,
727+
'x-field' => ITILFollowup::getForeignKeyField(),
728+
'x-itemtype' => ITILFollowup::class,
729+
'x-join' => [
730+
'table' => ITILFollowup::getTable(),
731+
'fkey' => ITILFollowup::getForeignKeyField(),
732+
'field' => 'id',
733+
],
734+
'properties' => [
735+
'id' => [
736+
'type' => Doc\Schema::TYPE_INTEGER,
737+
'format' => Doc\Schema::FORMAT_INTEGER_INT64,
738+
'readOnly' => true,
739+
],
740+
],
741+
],
725742
'date_creation' => [
726743
'x-version-introduced' => '2.1.0',
727744
'type' => Doc\Schema::TYPE_STRING,

0 commit comments

Comments
 (0)