openproject icon indicating copy to clipboard operation
openproject copied to clipboard

Exclude boolean fields from required, because they cannot really be validated as a required field.

Open dombesz opened this issue 4 months ago • 1 comments

Ticket

https://community.openproject.org/wp/69762

What are you trying to accomplish?

The project creation wizard falsely shows a 3rd step, when only a boolean project attributes is required.

Screenshots

Before

image

After

image

What approach did you choose and why?

Update the CustomField.required scope to exclude boolean fields too, because they cannot be required.

Merge checklist

  • [X] Added/updated tests
  • [ ] Added/updated documentation in Lookbook (patterns, previews, etc)
  • [X] Tested major browsers (Chrome, Firefox, Edge, ...)

dombesz avatar Nov 26 '25 14:11 dombesz

While I agree on making boolean custom field non-required, the UI still shows that it can be required:

image image

If the scope is changed to exclude booleans, shouldn't the UI be updated and remove the ability to mark them as required as well? And it will need a migration too then, wouldn't it?

cbliard avatar Nov 26 '25 15:11 cbliard