Skip to content
Snippets Groups Projects
Commit 67fdbebd authored by Larry Garfield's avatar Larry Garfield Committed by Alex Bronstein
Browse files

Don't render subrequest as a full page, just pass them through normal drupal_render().

parent 8504d429
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -63,7 +63,8 @@ public function onView(GetResponseForControllerResultEvent $event) {
}
}
else {
$event->setResponse($this->onHtml($event));
$page_callback_result = $event->getControllerResult();
$event->setResponse(new Response(drupal_render($page_callback_result)));
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment