Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
19ad9669
Commit
19ad9669
authored
Nov 02, 2012
by
Dries Buytaert
Browse files
- Issue
#1751328
by linclark, Hanspolo: requests for JSON result in fatal error.
parent
86ef4929
Changes
1
Hide whitespace changes
Inline
Side-by-side
core/lib/Drupal/Core/EventSubscriber/ViewSubscriber.php
View file @
19ad9669
...
...
@@ -91,7 +91,7 @@ public function onJson(GetResponseForControllerResultEvent $event) {
$page_callback_result
=
$event
->
getControllerResult
();
$response
=
new
JsonResponse
();
$response
->
set
Content
(
$page_callback_result
);
$response
->
set
Data
(
$page_callback_result
);
return
$response
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment