mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-13 02:12:41 +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:
parent
70807fb4e2
commit
ea47f33632
1 changed files with 3 additions and 3 deletions
|
@ -94,12 +94,12 @@ final class DifferentialDiffTableOfContentsView extends AphrontView {
|
||||||
} else {
|
} else {
|
||||||
$vs_id = null;
|
$vs_id = null;
|
||||||
}
|
}
|
||||||
$ref = $changeset->getRenderingReference();
|
|
||||||
|
$ref = $vs_id ? $id.'/'.$vs_id : $id;
|
||||||
$detail_uri = new PhutilURI($this->renderURI);
|
$detail_uri = new PhutilURI($this->renderURI);
|
||||||
$detail_uri->setQueryParams(
|
$detail_uri->setQueryParams(
|
||||||
array(
|
array(
|
||||||
'id' => $ref,
|
'ref' => $ref,
|
||||||
'vs' => $vs_id,
|
|
||||||
'whitespace' => $this->whitespace,
|
'whitespace' => $this->whitespace,
|
||||||
'revision_id' => $this->revisionID,
|
'revision_id' => $this->revisionID,
|
||||||
));
|
));
|
||||||
|
|
Loading…
Reference in a new issue