mirror of
https://we.phorge.it/source/phorge.git
synced 2025-03-31 14:38:15 +02:00
Add basic fields back to Manage pages
Summary: It feels wierd to edit a project or profile and not see the changes. For now add them back to the Manage page. Test Plan: Edit a Profile, Edit a Project. See updates on Manage page. Reviewers: epriestley Reviewed By: epriestley Subscribers: Korvin Differential Revision: https://secure.phabricator.com/D15140
This commit is contained in:
parent
27e21b0107
commit
b8139e6946
2 changed files with 12 additions and 0 deletions
|
@ -16,6 +16,7 @@ final class PhabricatorPeopleProfileManageController
|
||||||
->withIDs(array($id))
|
->withIDs(array($id))
|
||||||
->needProfile(true)
|
->needProfile(true)
|
||||||
->needProfileImage(true)
|
->needProfileImage(true)
|
||||||
|
->needAvailability(true)
|
||||||
->executeOne();
|
->executeOne();
|
||||||
if (!$user) {
|
if (!$user) {
|
||||||
return new Aphront404Response();
|
return new Aphront404Response();
|
||||||
|
@ -78,6 +79,11 @@ final class PhabricatorPeopleProfileManageController
|
||||||
->setUser($viewer)
|
->setUser($viewer)
|
||||||
->setObject($user);
|
->setObject($user);
|
||||||
|
|
||||||
|
$field_list = PhabricatorCustomField::getObjectFields(
|
||||||
|
$user,
|
||||||
|
PhabricatorCustomField::ROLE_VIEW);
|
||||||
|
$field_list->appendFieldsToPropertyList($user, $viewer, $view);
|
||||||
|
|
||||||
return $view;
|
return $view;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -132,6 +132,12 @@ final class PhabricatorProjectManageController
|
||||||
pht('Looks Like'),
|
pht('Looks Like'),
|
||||||
$viewer->renderHandle($project->getPHID())->setAsTag(true));
|
$viewer->renderHandle($project->getPHID())->setAsTag(true));
|
||||||
|
|
||||||
|
|
||||||
|
$field_list = PhabricatorCustomField::getObjectFields(
|
||||||
|
$project,
|
||||||
|
PhabricatorCustomField::ROLE_VIEW);
|
||||||
|
$field_list->appendFieldsToPropertyList($project, $viewer, $view);
|
||||||
|
|
||||||
return $view;
|
return $view;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue