Inline Form Errors links to non existing field id if field validation fails.

Created on 1 November 2021, over 3 years ago
Updated 2 July 2025, 1 day ago

Problem/Motivation

A validation error is not linked correctly to the entity reference field when using field widget multiple_options_select

Steps to reproduce

  1. Setup a required entity reference field with multiple_options_select as widget under a few other fields.
  2. Enable inline_form_errors module
  3. Trigger requirement error
  4. Link to requirement error don't move the screen to the field with the problem.

Proposed resolution

Make it work with inline_form_errors, without losing the current implementation: First field is highlighted with the error, independent of the delta.

Remaining tasks

  1. Review patch
  2. Write test

User interface changes

Requirement error is set on the first Delta of the field, instead of the field itself.

API changes

None

Data model changes

None

🐛 Bug report
Status

Needs work

Version

1.0

Component

Code

Created by

🇳🇱Netherlands tess bakker

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

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