Ticket #2412 (assigned defect)
More than one resource invalidatiing breaks dataset edit form
Reported by: | icmurray | Owned by: | zephod |
---|---|---|---|
Priority: | major | Milestone: | ckan-sprint-2012-06-25 |
Component: | ckan | Keywords: | |
Cc: | rgrp kindly | Repository: | ckan |
Theme: | none |
Description
When attempting to add more than one resource at once, if more than one resource invalidates, this results in a js error, leaving the form in an inconsistent state.
Repro:
- Go to /dataset/new
- Add a new resource. Fill in one of the fields with an invalid value. eg - last_modified, or size...
- Add another resource, doing the same thing: make one of the fields invalid.
- Try to save the dataset.
- The entered resource information will be lost, and a js error "Uncaught Error: Can't add the same model to a set twice,: backbone.js:586" will be thrown.
Change History
Note: See
TracTickets for help on using
tickets.