Commit 19ad9669 authored by Dries's avatar Dries

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

parent 86ef4929
......@@ -91,7 +91,7 @@ public function onJson(GetResponseForControllerResultEvent $event) {
$page_callback_result = $event->getControllerResult();
$response = new JsonResponse();
$response->setContent($page_callback_result);
$response->setData($page_callback_result);
return $response;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment