D10.2 Errors in the add/edit form

Created on 15 April 2024, 8 months ago
Updated 12 June 2024, 6 months ago

Due to the fact that in D10.2 storageSettingsForm and fieldSettingsForm are on the same page, the add/edit form does not work correctly.
When an entity type changes, validation is triggered (see \Drupal\field_ui\Form\FieldConfigEditForm::validateForm) during which buildEntity is called which in turn calls \Drupal\Core\Entity\EntityForm::copyFormValuesToEntity.
As a result, after validation in targetTypeFieldSettingsForm we receive $field_settings only for filled $target_type.

๐Ÿ› Bug report
Status

Needs work

Version

3.2

Component

Code

Created by

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024