mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-20 12:30:56 +01:00
Fix public/private profile edit note
Summary: Fixes T8976. Checks state of note before applying to box. Test Plan: Set policy to login, edit profile. Reviewers: epriestley Reviewed By: epriestley Subscribers: epriestley, Korvin Maniphest Tasks: T8976 Differential Revision: https://secure.phabricator.com/D13739
This commit is contained in:
parent
8d53f15115
commit
84049e6d07
1 changed files with 4 additions and 1 deletions
|
@ -84,10 +84,13 @@ final class PhabricatorPeopleProfileEditController
|
|||
|
||||
$form_box = id(new PHUIObjectBoxView())
|
||||
->setHeaderText(pht('Edit Profile'))
|
||||
->setInfoView($note)
|
||||
->setValidationException($validation_exception)
|
||||
->setForm($form);
|
||||
|
||||
if ($note) {
|
||||
$form_box->setInfoView($note);
|
||||
}
|
||||
|
||||
$nav = $this->buildIconNavView($user);
|
||||
$nav->selectFilter('/');
|
||||
$nav->appendChild($form_box);
|
||||
|
|
Loading…
Reference in a new issue