Page MenuHomePhabricator

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

Authored by epriestley on Jun 20 2017, 10:27 PM.
Tags
None
Referenced Files
F14387605: D18142.diff
Sat, Dec 21, 2:57 PM
F14387322: D18142.diff
Sat, Dec 21, 2:36 PM
Unknown Object (File)
Wed, Dec 4, 4:09 AM
Unknown Object (File)
Mon, Dec 2, 12:09 PM
Unknown Object (File)
Mon, Nov 25, 11:04 AM
Unknown Object (File)
Nov 21 2024, 12:30 AM
Unknown Object (File)
Nov 17 2024, 8:28 AM
Unknown Object (File)
Nov 9 2024, 2:09 PM
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