1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-09-20 01:08:50 +02:00

Fix exception when trying to save global setting mail tags

Summary: Ref T11098. Template preferences don't have a user, but this codepath didn't get fully updated to account for that.

Test Plan: Saved mail tags in global prefernces.

Reviewers: avivey, chad

Reviewed By: chad

Maniphest Tasks: T11098

Differential Revision: https://secure.phabricator.com/D16050
This commit is contained in:
epriestley 2016-06-05 13:39:39 -07:00
parent 6ac5f84c8b
commit 4936be0868

View file

@ -160,7 +160,7 @@ final class PhabricatorEmailPreferencesSettingsPanel
return $editors;
}
private function getAllTags(PhabricatorUser $user) {
private function getAllTags(PhabricatorUser $user = null) {
$tags = array();
foreach ($this->getAllEditorsWithTags($user) as $editor) {
$tags += $editor->getMailTagsMap();