Ticket #2412 (assigned defect)

Opened 2 years ago

Last modified 2 years ago

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:

  1. Go to /dataset/new
  2. Add a new resource. Fill in one of the fields with an invalid value. eg - last_modified, or size...
  3. Add another resource, doing the same thing: make one of the fields invalid.
  4. Try to save the dataset.
  5. 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

comment:1 Changed 2 years ago by icmurray

  • Owner set to zephod
  • Status changed from new to assigned
  • Milestone changed from ckan-v1.7 to current-ckan-sprint-2012-06-25
Note: See TracTickets for help on using tickets.