Show the paragraph and field label of fields that fail validation

Created on 22 January 2019, over 5 years ago
Updated 8 May 2024, about 2 months ago

Problem/Motivation

When a closed paragraph fails validation, the error message is shown on the parent entity form being saved.

In normal operation, this does not happen. But when, for example, a non-required field is made required, existing content cannot be edited and saved without filling the field first. It is hard to figure out what field is causing the validation error. You will have to open every paragraph (and nested paragraphs) to find it out.

Proposed resolution

Show what paragraph and field triggered the error.

I've attached a patch which resolves the issue for our use-case.

Feature request
Status

RTBC

Version

1.0

Component

Code

Created by

🇳🇱Netherlands jsst

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.69.0 2024