From bca9dfa10e3db2a4ddc187d80df1233f744d1ad5 Mon Sep 17 00:00:00 2001 From: Edward Speyer Date: Thu, 8 Aug 2013 16:32:05 +0100 Subject: [PATCH] Fix for D6260 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Summary: Fixes a query in √D6260. Test Plan: View a Releeph RQ and verify that the "churn" field renders and has the right numbers in it. Reviewers: epriestley, btrahan Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D6702 --- .../specification/ReleephDiffChurnFieldSpecification.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/applications/releeph/field/specification/ReleephDiffChurnFieldSpecification.php b/src/applications/releeph/field/specification/ReleephDiffChurnFieldSpecification.php index fa191c797c..281c6ea60f 100644 --- a/src/applications/releeph/field/specification/ReleephDiffChurnFieldSpecification.php +++ b/src/applications/releeph/field/specification/ReleephDiffChurnFieldSpecification.php @@ -19,10 +19,9 @@ final class ReleephDiffChurnFieldSpecification } $diff_rev = $this->getReleephRequest()->loadDifferentialRevision(); - $comments = id(new DifferentialRevisionQuery()) - ->setViewer($this->getUser()) + $comments = id(new DifferentialCommentQuery()) ->withRevisionIDs(array($diff_rev->getID())) - ->excute(); + ->execute(); $counts = array(); foreach ($comments as $comment) {