diff --git a/src/applications/differential/editor/DifferentialTransactionEditor.php b/src/applications/differential/editor/DifferentialTransactionEditor.php --- a/src/applications/differential/editor/DifferentialTransactionEditor.php +++ b/src/applications/differential/editor/DifferentialTransactionEditor.php @@ -1284,19 +1284,20 @@ $changeset_ids[$id] = $id; } - if ($show_context) { - $hunk_parser = new DifferentialHunkParser(); - $changesets = id(new DifferentialChangesetQuery()) - ->setViewer($this->getActor()) - ->withIDs($changeset_ids) - ->needHunks(true) - ->execute(); - } + $changesets = id(new DifferentialChangesetQuery()) + ->setViewer($this->getActor()) + ->withIDs($changeset_ids) + ->needHunks(true) + ->execute(); $inline_groups = DifferentialTransactionComment::sortAndGroupInlines( $inlines, $changesets); + if ($show_context) { + $hunk_parser = new DifferentialHunkParser(); + } + $result = array(); foreach ($inline_groups as $changeset_id => $group) { $changeset = idx($changesets, $changeset_id);