Page MenuHomePhabricator

Let "<select />" EditEngine fields canonicalize saved defaults
ClosedPublic

Authored by epriestley on Jun 20 2017, 10:27 PM.
Tags
None
Referenced Files
F13195274: D18142.diff
Sun, May 12, 10:16 PM
F13178081: D18142.diff
Wed, May 8, 8:09 PM
Unknown Object (File)
Thu, Apr 25, 1:26 AM
Unknown Object (File)
Apr 19 2024, 6:37 PM
Unknown Object (File)
Apr 15 2024, 8:25 PM
Unknown Object (File)
Apr 15 2024, 8:17 PM
Unknown Object (File)
Apr 11 2024, 8:55 AM
Unknown Object (File)
Apr 9 2024, 12:11 AM
Subscribers
None

Details

Summary

Ref T12124. After D18134 we accept either "25" or "low" via HTTP parameters and when the field renders as a control, but if the form has a default value for the field but locks or hides it we don't actually run through that logic.

Canonicalize both when rendering the control and when using a raw saved default value.

Test Plan
  • Created a form with "Priority: Low".
  • Hid the "Priority" field.
  • Before patch: Tried to create a task, was rebuffed with a (now verbose and helpful, after D18135) error.
  • Applied patch: things worked.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable