mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-18 19:40:55 +01:00
Hide repository from atom view if it hasn't been set
Summary: Fixes T8626. I guess that `$this->getViewer()->renderHandle(null)` renders as "Unknown Object", which is somewhat odd to me. Test Plan: Viewed an atom from a book without a repository linked to it. Reviewers: epriestley, #blessed_reviewers Reviewed By: epriestley, #blessed_reviewers Subscribers: epriestley, Korvin Maniphest Tasks: T8626 Differential Revision: https://secure.phabricator.com/D13370
This commit is contained in:
parent
b24bdf0288
commit
f9e838024c
1 changed files with 4 additions and 0 deletions
|
@ -300,6 +300,10 @@ final class DivinerAtomController extends DivinerController {
|
|||
PHUIPropertyListView $view,
|
||||
DivinerLiveSymbol $symbol) {
|
||||
|
||||
if (!$symbol->getRepositoryPHID()) {
|
||||
return;
|
||||
}
|
||||
|
||||
$view->addProperty(
|
||||
pht('Repository'),
|
||||
$this->getViewer()->renderHandle($symbol->getRepositoryPHID()));
|
||||
|
|
Loading…
Reference in a new issue