1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-02 11:42:42 +01:00

(stable) 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:
Chad Little 2015-07-27 15:12:03 -07:00 committed by epriestley
parent 04c40e3abf
commit 535c1a5f25

View file

@ -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);