From 79375c6c53985f447a87b9770d088e31e93f5dd7 Mon Sep 17 00:00:00 2001 From: epriestley Date: Mon, 10 Aug 2020 13:30:11 -0700 Subject: [PATCH] Make "Quote" work properly in Pholio Summary: See . Pholio is currently missing a couple of configuration calls to make the "Quote" action work. Moving to EditEngine is the "real" fix, but this fix is trivial and should make "Quote" work properly with no negative effects. Test Plan: Viewed a mock, used "quote" to quote a comment. Differential Revision: https://secure.phabricator.com/D21437 --- .../pholio/controller/PholioMockViewController.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/applications/pholio/controller/PholioMockViewController.php b/src/applications/pholio/controller/PholioMockViewController.php index e24889875a..f4695d120c 100644 --- a/src/applications/pholio/controller/PholioMockViewController.php +++ b/src/applications/pholio/controller/PholioMockViewController.php @@ -61,6 +61,8 @@ final class PholioMockViewController extends PholioController { new PholioTransactionQuery()); $timeline->setMock($mock); + $timeline->setQuoteRef($mock->getMonogram()); + $curtain = $this->buildCurtainView($mock); $details = $this->buildDescriptionView($mock); @@ -80,6 +82,7 @@ final class PholioMockViewController extends PholioController { ->appendChild($mock_view); $add_comment = $this->buildAddCommentView($mock, $comment_form_id); + $add_comment->setTransactionTimeline($timeline); $crumbs = $this->buildApplicationCrumbs(); $crumbs->addTextCrumb($mock->getMonogram(), $mock->getURI());