ckanext-scheming
ckanext-scheming copied to clipboard
Update resource_form.html
When I try to create a dataset with no resources, the error 'You must add at least one data resource' does not appear in the resource_form. When I analyzed lines 656 to 668 in https://github.com/ckan/ckan/blob/master/ckan/controllers/package.py#L656-L668 , I realized that the error dict is empty and only the error_summary is assigned the message. That is why I suggest checking and adding the error summary in this scheming snippet as well. I tried to extend this snippet otherwise, but I didn't succeed. With this patch, I got the error message to reappear on the page.
I cannot access circleci to check the failed tests, but I only added minor changes.
The tests fails because of https://github.com/ckan/ckan/pull/3181. This will be fixed when they release 2.5.3
Any chance this can be re-run against a newer ckan version? Looks like it was last tried about a year ago against ckan release-v2.3-latest.