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

Fixed the table of contents standalone view link.

Summary:
Exception was thrown because there is no getRenderingReference function
for changeset.

Test Plan:
Sandbox loaded and links were working.

Reviewed By: grglr
Reviewers: grglr, epriestley
CC: aran, grglr
Differential Revision: 281
This commit is contained in:
tuomaspelkonen 2011-05-13 13:03:38 -07:00
parent 70807fb4e2
commit ea47f33632

View file

@ -94,12 +94,12 @@ final class DifferentialDiffTableOfContentsView extends AphrontView {
} else {
$vs_id = null;
}
$ref = $changeset->getRenderingReference();
$ref = $vs_id ? $id.'/'.$vs_id : $id;
$detail_uri = new PhutilURI($this->renderURI);
$detail_uri->setQueryParams(
array(
'id' => $ref,
'vs' => $vs_id,
'ref' => $ref,
'whitespace' => $this->whitespace,
'revision_id' => $this->revisionID,
));