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

If there are no flagged revisions, don't show anything on "Active Revisions"

Test Plan: Looked at /differential/ with and without flags.

Reviewers: nh, btrahan

Reviewed By: nh

CC: aran, epriestley

Maniphest Tasks: T1055

Differential Revision: https://secure.phabricator.com/D2044
This commit is contained in:
epriestley 2012-03-28 20:03:16 -07:00
parent eaa2ff71d3
commit ec8b445727

View file

@ -452,15 +452,17 @@ final class DifferentialRevisionListController extends DifferentialController {
->needHandles(true)
->execute();
$view = id(new PhabricatorFlagListView())
->setFlags($flags)
->setUser($user);
if ($flags) {
$view = id(new PhabricatorFlagListView())
->setFlags($flags)
->setUser($user);
$views[] = array(
'title' => 'Flagged Revisions',
'view' => $view,
'special' => true,
);
$views[] = array(
'title' => 'Flagged Revisions',
'view' => $view,
'special' => true,
);
}
}
$view = id(clone $template)