Page MenuHomePhabricator

Fix a fatal on user email settings when `account.editable` is disabled
ClosedPublic

Authored by epriestley on Oct 4 2017, 2:18 PM.
Tags
None
Referenced Files
F14120755: D18677.diff
Fri, Nov 29, 10:00 AM
Unknown Object (File)
Wed, Nov 27, 10:37 PM
Unknown Object (File)
Mon, Nov 18, 8:39 PM
Unknown Object (File)
Oct 17 2024, 3:57 PM
Unknown Object (File)
Oct 14 2024, 5:31 PM
Unknown Object (File)
Aug 19 2024, 11:59 AM
Unknown Object (File)
Aug 7 2024, 12:15 AM
Unknown Object (File)
Aug 6 2024, 11:44 PM
Subscribers
None

Details

Summary

If account.editable is set to false, we try to add a null button and fatal:

Argument 1 passed to PHUIHeaderView::addActionLink() must be an instance of PHUIButtonView, null given, called in /srv/phabricator/phabricator/src/applications/settings/panel/PhabricatorSettingsPanel.php on line 290

Instead, don't try to render null as a button.

Test Plan
  • Configured account.editable false.
  • Viewed email address settings.
  • Before: fatal.
  • After: page works, no button is provided.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable