hyrax
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
Descriptive summary
-
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.
-
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:
Steps to reproduce the behavior
- Add a work to a single-membership collection
- Go the work edit page, go to the "Relationships" tab
- Add the work to another single-membership collection
- Click "Save" shows the error mentioned above.
- 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