Ticket #1215 (closed defect: fixed)
Edit Resources table - removing all rows prevents adding them again
Reported by: | dread | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | ckan | Keywords: | |
Cc: | Repository: | ckan | |
Theme: | none |
Description
I'm not sure if this was reported earlier, but I have found a minor bug in the "Add new package" form. As far as I can see this bug exists in v1.3.2 and also in v1.4.1a (that runs on ckan.net). This is a problem with adding new resources in "Resources" section. To reproduce the bug do the following:
- Go to "Add new package", for instance http://ckan.net/package/new
- Scroll down to "Resources" section.
- Click on "Remove this row" link (red circle).
- Say "Yes" to "Are you sure you wish to remove this row?"
- Now there should be no rows. Only the header "URL* Format Description"
- Click on "Add row to table"
- All you get now is another row with table header "URL* Format Description". You will not be able to add any resources now. Solution is to reload the page.
The simplest solution to this bug will be to hide the "Remove this row" link if there is only one row.
Change History
Note: See
TracTickets for help on using
tickets.
fixed cset: 8a317eadbb36
If you delete the last row then it just clears it instead of deleting the row.