Symbiota / Symbiota-deprecated

This original code fork is considered deprecated and no longer maintained by the community. We recommend that you use one of the several actively developed forks.
GNU General Public License v2.0
23 stars 96 forks source link

Search results download generates empty file when all collections are selected by default #122

Open arbolitoloco opened 6 years ago

arbolitoloco commented 6 years ago

If no particular collection has been selected in the advanced search (default = all selected), when one attempts to download the csv file, a NoData.txt is generated instead, containing the following text: "The query failed to return records. Please modify query criteria and try again."

I assume this happens, because the variable collJson from collections/list.php is not being outputted in the url request (example from WIS Flora portal): http://wisflora.herbarium.wisc.edu/collections/download/index.php?dltype=specimen&starr={"taxa":"Acer ginnala","usethes":false,"taxontype":1}&jsoncollstarr=

The normal behavior should output: http://wisflora.herbarium.wisc.edu/collections/download/index.php?dltype=specimen&starr={"taxa":"Acer ginnala","usethes":false,"taxontype":1}&jsoncollstarr={"db":"all"}

I tried using the fixes in commit d0d9048, but nothing changed.