Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

fix for setJsonpCallback not called when recieved JsonModel + test #2643

Closed
wants to merge 2 commits into from
Closed

fix for setJsonpCallback not called when recieved JsonModel + test #2643

wants to merge 2 commits into from

Conversation

basz
Copy link
Contributor

@basz basz commented Oct 2, 2012

When JsonStrategy::selectRenderer is called with an instanceof JsonModel in the event, the renderer would not be configured.

This is only an issue with accept header 'application/javascript' AND $request->getQuery()->get('callback') is available.

Reason is that it would return a renderer early based on the instance type at https://github.com/zendframework/zf2/blob/master/library/Zend/View/Strategy/JsonStrategy.php#L87

weierophinney added a commit that referenced this pull request Oct 2, 2012
@ghost ghost assigned weierophinney Oct 2, 2012
weierophinney added a commit to zendframework/zend-view that referenced this pull request May 15, 2015
weierophinney added a commit to zendframework/zend-view that referenced this pull request May 15, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants