kitodo-production
kitodo-production copied to clipboard
Updating SearchFields in new ImportConfigurations is bugged
Describe the bug
When adding SearchFields to a new ImportConfiguration (not yet saved to the database), updating a search field does not just update the label and value of the updated field, but of all fields, which in turn leads to an java.lang.IllegalStateException with error message Duplicate key.
To Reproduce Steps to reproduce the behavior:
- Go to page 'Projects'
- Create a new 'ImportConfiguration'
- Add two search fields
- Edit the second search field and click 'Apply'
- See error
Expected behavior It should be possible to update unsaved SearchFields of new ImportConfigurations without an error.
Screenshots https://user-images.githubusercontent.com/19183925/197975286-2763c938-8934-4149-b9bf-0051b3b9e974.mp4
Release 3.4.4-SNAPSHOT (commit 5b175a6)