Warning message displayed in edit mode on mandatory field disabled in form displaying

Created on 19 June 2023, about 1 year ago
Updated 7 November 2023, 8 months ago

Problem/Motivation

Hello project maintainers,

In editing mode of a content with an asymmetrical paragraph, if there is a field in this paragraph marked as mandatory and which is disabled in the display of the form, then the prevention messages of the style "This value cannot be null" appears when it shouldn't.

A check is missing on the disabled attribute of the form field in the validate method of the Class ParagraphsLibraryItemHasAllowedParagraphsTypeConstraintValidator In charge of checking constraints on fields

Steps to reproduce

create content with an asymmetrical paragraph that contains a mandatory but disabled text field in the form display and then edit it

Proposed resolution

Check the field is enable before display warning violation

Remaining tasks

  • ✅ File an issue
  • ➖ Addition/Change/Update/Fix
  • ➖ Testing to ensure no regression
  • ➖ Automated unit testing coverage
  • ➖ Automated functional testing coverage
  • ➖ UX/UI designer responsibilities
  • ➖ Readability
  • ➖ Accessibility
  • ➖ Performance
  • ➖ Security
  • ➖ Documentation
  • ➖ Code review by maintainers
  • ➖ Full testing and approval
  • ➖ Credit contributors
  • ➖ Review with the product owner
  • ➖ Release notes snippet
  • ❌ Release

User interface changes

  • N/A

API changes

  • N/A

Data model changes

  • N/A

Release notes snippet

  • N/A
🐛 Bug report
Status

Needs review

Version

1.2

Component

Code

Created by

🇫🇷France s.leduc

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

Comments & Activities

Production build 0.69.0 2024