Show the paragraph and field label of fields that fail validation

Created on 22 January 2019, almost 6 years ago
Updated 3 September 2024, 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

Fixed

Version

1.0

Component

Code

Created by

🇳🇱Netherlands jsst

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

Merge Requests

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