Skip to content

Commit

Permalink
FieldConfigForm: Check the items property in field schema only if it …
Browse files Browse the repository at this point in the history
…exists
  • Loading branch information
raviks789 committed Apr 11, 2024
1 parent 2734a18 commit dfb83a9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion application/forms/Config/FieldConfigForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,10 @@ public function enumAllowedFields(): array

foreach ($this->jira->get('field')->getResult() as $field) {
if ($field->custom && in_array($field->schema->type, $fieldTypes)) {
if ($field->schema->type === 'array' && $field->schema->items !== 'string') {
if (
$field->schema->type === 'array'
&& (! isset($field->schema->items) || $field->schema->items !== 'string')
) {
continue;
}

Expand Down

0 comments on commit dfb83a9

Please sign in to comment.