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
F14475323: D18677.id.diff
Fri, Dec 27, 6:35 PM
Unknown Object (File)
Tue, Dec 24, 11:34 PM
Unknown Object (File)
Mon, Dec 23, 7:43 AM
Unknown Object (File)
Tue, Dec 17, 11:45 PM
Unknown Object (File)
Mon, Dec 16, 7:40 AM
Unknown Object (File)
Sat, Dec 14, 5:06 PM
Unknown Object (File)
Mon, Dec 9, 7:43 PM
Unknown Object (File)
Sun, Dec 1, 11:00 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