Page MenuHomePhabricator

Don't render the Maniphest edit form bottom-of-page preview panel if "Description" is locked or hidden
ClosedPublic

Authored by epriestley on May 7 2018, 8:56 PM.
Tags
None
Referenced Files
F14100794: D19432.id46483.diff
Tue, Nov 26, 3:02 PM
Unknown Object (File)
Sat, Nov 23, 7:40 AM
Unknown Object (File)
Sat, Nov 23, 4:46 AM
Unknown Object (File)
Wed, Nov 20, 10:27 AM
Unknown Object (File)
Wed, Nov 20, 8:59 AM
Unknown Object (File)
Wed, Nov 20, 8:38 AM
Unknown Object (File)
Tue, Nov 19, 9:09 PM
Unknown Object (File)
Tue, Nov 19, 5:49 AM
Subscribers
None

Details

Summary

See https://discourse.phabricator-community.org/t/hidden-description-field-in-maniphest-task-breaks-form/1432.

If you hide the "Description" field in Maniphest, we still try to render a remarkup preview for it. This causes a JS error and a nonfunctional element on the page.

Instead, hide the preview panel if the field has been locked or hidden.

Test Plan
  • Hid the field, loaded the form, no more preview panel / JS error.
  • Used a normal form with the field visible, saw a normal preview.

Diff Detail

Repository
rP Phabricator
Branch
rpreview1
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 20290
Build 27545: Run Core Tests
Build 27544: arc lint + arc unit