Page MenuHomePhabricator

Respect "disabled" custom field status granted by "subtype" configuration in form validation
ClosedPublic

Authored by epriestley on Aug 22 2019, 1:02 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Apr 5, 7:02 AM
Unknown Object (File)
Mar 5 2024, 6:42 AM
Unknown Object (File)
Feb 21 2024, 9:15 AM
Unknown Object (File)
Feb 10 2024, 4:29 AM
Unknown Object (File)
Feb 3 2024, 11:06 PM
Unknown Object (File)
Dec 30 2023, 6:50 PM
Unknown Object (File)
Dec 26 2023, 9:05 PM
Unknown Object (File)
Dec 23 2023, 9:34 PM
Subscribers
None

Details

Summary

Fixes T13384. Currently, the subtype "disabled" configuration is not respected when selecting fields for ROLE_EDIT.

The only meaningful caller for ROLE_EDIT is transaction validation, but transaction validation should respect fields being disabled by subtype configuration.

Test Plan
  • Added a "required" Maniphest custom field "F", then "disabled" it in a subtype "S".
  • Created a task of subtype "S".
    • Before: Form submission fails with error "F is required", even though the field is not actually visible on the form and can not be set.
    • After: Form submits cleanly and creates the task.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision was not accepted when it landed; it landed in state Draft.Aug 22 2019, 1:03 AM
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.