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 #2433

Closed
wants to merge 2 commits into from
Closed

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

wants to merge 2 commits into from

Conversation

basz
Copy link
Contributor

@basz basz commented Sep 27, 2012

resubmitted cleanly without all the git cruft woot!

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

@ghost ghost assigned weierophinney Oct 1, 2012
@weierophinney
Copy link
Member

@basz The branch appears to be missing, and as such, I cannot pull. :-(

@basz
Copy link
Contributor Author

basz commented Oct 2, 2012

@weierophinney excuse me, git wars... please see this identical new PR : #2643

@weierophinney
Copy link
Member

Close in favor of #2643

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