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

Fix comment previews in Quicksand

Summary:
Fixes T7063. Fixes T7059. We were running some extra unnecessary behaviors. In particular, we would render the menu but not actually send it over the wire, so some behaviors would execute, fail to find the nodes they expected, and throw. This cascaded into some other failures.

Do less work and don't activate behaviors which won't be able to run.

Test Plan: Clicked around, no more errors on page transition. Comment previews work.

Reviewers: btrahan, chad

Reviewed By: chad

Subscribers: epriestley

Maniphest Tasks: T7059, T7063

Differential Revision: https://secure.phabricator.com/D12188
This commit is contained in:
epriestley 2015-03-28 06:54:04 -07:00
parent 637974a190
commit 21454842bf

View file

@ -590,9 +590,7 @@ final class PhabricatorStandardPageView extends PhabricatorBarePageView {
}
public function renderForQuicksand() {
// TODO: We could run a lighter version of this and skip some work. In
// particular, we end up including many redundant resources.
$this->willRenderPage();
parent::willRenderPage();
$response = $this->renderPageBodyContent();
$response = $this->willSendResponse($response);