Required setting not being saved back to Field Config entity when using the default (Core) Required API plugin.

Created on 13 October 2017, almost 7 years ago
Updated 24 July 2024, about 2 months ago

This is a duplicate of https://www.drupal.org/node/2916137 β†’ on required_by_role.

When selecting the default (Core) option for Requirement strategy, the requirement setting is not saved back to the Field Config entity, although the default plugin uses $field->isRequired() when checking whether the field should be required.

I've written a patch that does a hook_field_config_presave to check whether 'default' is selected, and then saving the required setting back onto the entity.

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States grathbone

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024