Fix Paragraphs support with Content Moderation

Created on 18 June 2025, about 1 month ago

Problem/Motivation

This bug renders the require on publish feature unusable with no workaround when used on a Paragraph field that is part of a content entity with Content Moderation.

Steps to reproduce

  1. Enable Require on Publish, Paragraphs, and Content Moderation.
  2. Create a Paragraph type with at least one field Required on Publish.
  3. Add the Paragraph type as a field to Basic Page.
  4. Add the Editorial workflow to Basic Page (/admin/config/workflow/workflows/manage/editorial)
  5. Create a Basic Page content.

When the node you create is published and the required on publish Paragraph sub-field is empty, the node is published and the "required when publish" message is not shown.

Proposed resolution

Conditionally check is published against status and against Content Moderation when appropriate.

See b027454 for inspiration.

πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States jcandan

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024