[regression] "Comments field is required" when creating content for types with a comment field configured as hidden

Created on 11 July 2023, over 1 year ago
Updated 14 July 2023, over 1 year ago

Problem/Motivation

Drupal 10.1.0 introduced a validation message "Comments field is required" when creating a content item for a content type that has comments set to hidden.

Steps to reproduce

Configure comment field on type Article to be "Hidden". Create an article, fill in title only and try to save.

Proposed resolution

I traced this back to 📌 Conditionally show default value fields Fixed , which changed the comment settings field to a required field, regardless of the form being rendered on the administration page or the content creation page.
Somehow conditionally setting required to TRUE could bring back the old behaviour, I guess.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

🐛 Bug report
Status

Fixed

Version

10.1

Component
Comment 

Last updated 12 days ago

Created by

🇳🇱Netherlands Eric_A

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

Comments & Activities

Production build 0.71.5 2024