Skip to content
Snippets Groups Projects
Commit 19ad9669 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Issue #1751328 by linclark, Hanspolo: requests for JSON result in fatal error.

parent 86ef4929
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
...@@ -91,7 +91,7 @@ public function onJson(GetResponseForControllerResultEvent $event) { ...@@ -91,7 +91,7 @@ public function onJson(GetResponseForControllerResultEvent $event) {
$page_callback_result = $event->getControllerResult(); $page_callback_result = $event->getControllerResult();
$response = new JsonResponse(); $response = new JsonResponse();
$response->setContent($page_callback_result); $response->setData($page_callback_result);
return $response; return $response;
} }
......
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