Require on publish not working for boolean field

Created on 4 January 2024, 6 months ago
Updated 15 February 2024, 4 months ago

Problem/Motivation

When making the boolean field as "Require on Publish", the field doesn't throw any validation errors when boolean field is not checked and node is published.

Steps to reproduce

  1. Add a boolean field on any content type.
  2. Check "Require on Publish" checkbox and save.
  3. Now add and publish the node without checking the boolean field.
  4. Observe that the node is getting published without any validation errors.

Proposed resolution

Add a check for boolean fields in RequireOnPublishValidator.php to skip validation only when the boolean field is checked.

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇮🇳India vatsalkhanna

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

Merge Requests

Comments & Activities

Production build 0.69.0 2024