From ea47f336321138227a9fca824be241e3010d454d Mon Sep 17 00:00:00 2001 From: tuomaspelkonen Date: Fri, 13 May 2011 13:03:38 -0700 Subject: [PATCH] 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 --- .../DifferentialDiffTableOfContentsView.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/applications/differential/view/difftableofcontents/DifferentialDiffTableOfContentsView.php b/src/applications/differential/view/difftableofcontents/DifferentialDiffTableOfContentsView.php index 4c6508d7cb..5dc4c8763b 100644 --- a/src/applications/differential/view/difftableofcontents/DifferentialDiffTableOfContentsView.php +++ b/src/applications/differential/view/difftableofcontents/DifferentialDiffTableOfContentsView.php @@ -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, ));