openproject
openproject copied to clipboard
Exclude boolean fields from required, because they cannot really be validated as a required field.
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
After
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, ...)
While I agree on making boolean custom field non-required, the UI still shows that it can be required:
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?