Problem/Motivation

Default value in field invitation_status is string-typed but should be a sequence.

Steps to reproduce

1. Clean install of Drupal, Group & Ginvite
2. Create a group & enable Ginvite
3. Use https://www.drupal.org/project/config_inspector to review field.field.group_content.[your_test_group]-group_invitation.invitation_status:default_value configuration
4. Resulting in : variable type is integer but applied schema class is Drupal\Core\Config\Schema\Sequence

Proposed resolution

Set the schema class to sequence while saving field default value in src/Plugin/GroupContentEnabler/GroupInvitation.php

Remaining tasks

Create patch

User interface changes

N/A

API changes

N/A

Data model changes

N/A

Issue fork ginvite-3207200

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

nguerrier created an issue. See original summary.

nguerrier’s picture

Status: Active » Needs review
nguerrier’s picture

NB : Would probably need a hook_update to update existing installs

nguerrier’s picture

Status: Needs review » Needs work

Eduardo Morales Alberti made their first commit to this issue’s fork.

eduardo morales alberti’s picture

Status: Needs work » Needs review

Thank you nguerrier, field config updated

eduardo morales alberti’s picture

Status: Needs review » Fixed

Tested on a clear installation, and config schema was updated, also the php unit test passed so we can merge it and close this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.