1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-01-31 08:58:20 +01:00

Ref T6049, Phurl object view should always display some sort of header.

Summary: Ref T6049, Phurl object view should display Phurl name or Phurl long url as header.

Test Plan:
- Create Phurl with no name. Header should show long url as header.
- Add name to Phurl. Header should be new Phurl name.

Reviewers: #blessed_reviewers, epriestley

Reviewed By: #blessed_reviewers, epriestley

Subscribers: Korvin

Maniphest Tasks: T6049

Differential Revision: https://secure.phabricator.com/D14502
This commit is contained in:
lkassianik 2015-11-17 12:01:12 -08:00
parent 2e09a93dc1
commit a41b857882
2 changed files with 2 additions and 2 deletions

View file

@ -79,7 +79,7 @@ final class PhabricatorPhurlURLViewController
$header = id(new PHUIHeaderView())
->setUser($viewer)
->setHeader($url->getName())
->setHeader($url->getDisplayName())
->setStatus($icon, $color, $status)
->setPolicyObject($url);

View file

@ -83,7 +83,7 @@ final class PhabricatorPhurlURL extends PhabricatorPhurlDAO
if ($this->getName()) {
return $this->getName();
} else {
return $this->getMonogram();
return $this->getLongURL();
}
}