1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-21 21:10:56 +01:00

Fix an issue with rendering unit messages for diffs with no buildable

Summary: Fixes T10591. This was accidentally reverted in 148a50e48b, probably when resolvign a merge/rebase.

Test Plan: Will push to production.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T10591

Differential Revision: https://secure.phabricator.com/D15474
This commit is contained in:
epriestley 2016-03-15 08:16:18 -07:00
parent a1dd1ad3cf
commit 121e68e3ad

View file

@ -1131,6 +1131,10 @@ final class DifferentialRevisionViewController extends DifferentialController {
DifferentialRevision $revision) { DifferentialRevision $revision) {
$viewer = $this->getViewer(); $viewer = $this->getViewer();
if (!$diff->getBuildable()) {
return null;
}
if (!$diff->getUnitMessages()) { if (!$diff->getUnitMessages()) {
return null; return null;
} }