Page MenuHomePhabricator

D9461.id22595.diff
No OneTemporary

D9461.id22595.diff

diff --git a/src/applications/differential/controller/DifferentialRevisionViewController.php b/src/applications/differential/controller/DifferentialRevisionViewController.php
--- a/src/applications/differential/controller/DifferentialRevisionViewController.php
+++ b/src/applications/differential/controller/DifferentialRevisionViewController.php
@@ -673,16 +673,15 @@
DifferentialDiff $diff_vs = null,
PhabricatorRepository $repository = null) {
- $load_ids = array();
+ $load_diffs = array($target);
if ($diff_vs) {
- $load_ids[] = $diff_vs->getID();
+ $load_diffs[] = $diff_vs;
}
- $load_ids[] = $target->getID();
- $raw_changesets = id(new DifferentialChangeset())
- ->loadAllWhere(
- 'diffID IN (%Ld)',
- $load_ids);
+ $raw_changesets = id(new DifferentialChangesetQuery())
+ ->setViewer($this->getRequest()->getUser())
+ ->withDiffs($load_diffs)
+ ->execute();
$changeset_groups = mgroup($raw_changesets, 'getDiffID');
$changesets = idx($changeset_groups, $target->getID(), array());

File Metadata

Mime Type
text/plain
Expires
Mon, Mar 31, 9:42 AM (2 w, 5 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7727989
Default Alt Text
D9461.id22595.diff (1 KB)

Event Timeline