hyrax icon indicating copy to clipboard operation
hyrax copied to clipboard

A work can be added to another single-membership collection and at the same time removed from the first single-membership collection

Open MPLSFedResearchTZ opened this issue 2 years ago • 0 comments

Descriptive summary

  1. When adding a work which belongs to a single-membership collection to second single-membership collection, it is automatically removed from the first single-membership collection while added to the second single-membership collection, where both situations are not allowed.

  2. After clicking the "Savw" button on the work edit page under the "Relationships" tab, an error of "ArgumentError in Hyrax::GenericWorks#show" is thrown out:

image

Steps to reproduce the behavior

  1. Add a work to a single-membership collection
  2. Go the work edit page, go to the "Relationships" tab
  3. Add the work to another single-membership collection
  4. Click "Save" shows the error mentioned above.
  5. Go to work list page you will see the work has already been added to the second single-membership collection.

Related work

https://github.com/samvera/hyrax/issues/5581

MPLSFedResearchTZ avatar Mar 25 '22 21:03 MPLSFedResearchTZ