Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
* Create a CSV view, "serve as file", set path
* create a link to that path
* click on that link
Result: No http response if result set is empty
Expected: Empty file
Comments
Comment #1
delphium CreditAttribution: delphium commentedI too am experiencing this issue with both current dev and 7.x-3.0-beta7.
Likewise I would expect an empty file or to conform to the "No Results Behaviour" thus allowing for custom markup to be inserted if no results had been found.
Comment #2
attisandid you solve this issue?
Does someone know what would fix this?
Comment #3
reswild CreditAttribution: reswild as a volunteer commentedIf I remember correctly, I solved this on one site I was working on by adding custom tpl.php files for the export views. In these, I added a "nbsp;" to the end of the content, so a blank page would be output if there was no result. (Or technically, a page containing one non-breaking space would be output.)