Fix dataset package download
Closes #8 (closed)
Merge request reports
Activity
- Resolved by Špela Dragan
- Resolved by Špela Dragan
- Resolved by Špela Dragan
assigned to @spela_dragan
It seems pops-test.xlab.si does not have this problem. It does duplicate the input field in the templates, but somehow it does not result in an array in the final state. @spela_dragan Can you please check the differences between the two deployments if there was some change in ckanext-dgu? I could hypothesize that perhaps it is also linked to SOLR, but the repo should be checked first.
I didn't find exactly the function where both form fields are joined into an array, but in this line
request.POST
contains both fields, and indata_dict
they are joined.I would guess that there are some differences between python 2.7.5 (used on pops-test) and python 2.7.18, used in vagrant deploy.
I added a line in JS, that overwrites the value of form field
url_type
, containing 'upload' to 'upload'. So after another "save" of affected datasets, the issue is gone.
added 2 commits
mentioned in merge request !35 (merged)
mentioned in issue #11