Page MenuHomePhabricator

Don't allow forms which can't create objects to be added to profile menus
ClosedPublic

Authored by epriestley on Feb 16 2017, 11:17 PM.
Tags
None
Referenced Files
F18826752: D17372.id41773.diff
Fri, Oct 24, 5:33 AM
F18815470: D17372.diff
Tue, Oct 21, 2:21 AM
F18791457: D17372.id41774.diff
Thu, Oct 16, 1:43 PM
F18733480: D17372.id.diff
Tue, Sep 30, 10:35 PM
F18656927: D17372.diff
Sep 22 2025, 11:53 PM
F18508538: D17372.id.diff
Sep 5 2025, 2:52 AM
F18500604: D17372.diff
Sep 4 2025, 9:11 PM
F18371112: D17372.diff
Aug 28 2025, 4:40 AM
Subscribers
None

Details

Summary

Fixes T12281. Some forms (like Settings) can't actually create new objects. Currently, though, you can select them and add them to profile menus; if you do, they fail when building an item.

Kick them out of the typeahead, and decline to render them in menus.

Test Plan

Added "Create Settings" to a menu, no longer fatals after patch (item vanished from menu, still editable normally to get rid of it).

Tried to add another "Create Settings", no longer available in typehaead.

Added some normal stuff.

Viewed a choose-among-forms dropdown in Maniphest, which still worked normally.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable