Here's a small patch that fixes an issue that caused me many Javascript errors. It was caused by Views JSON returning an empty HTML page when the result is empty, rather than an empty JSON object.
The fix was just to add 'even empty' => TRUE into views_json_views_plugins().
I've done the same with the other views (XML etc) as that seems to make sense there too.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | views_datasource-747246.patch | 2.54 KB | darrenmothersele |
Comments
Comment #1
darrenmothersele commentedMy patch didn't attach the first time, trying again.
Comment #2
allisterbeharry commentedThanks for the patch, committed in views_xml and views_json.