Books part of a group in a collection, if moved to another collection creates duplicate
Steps to reproduce
- Create a collection which groups by
Custom group
- Create a group inside of the collection
- Add a book to this collection and move it inside of a group (Example here )
- Go at book settings and move it to another collection and check that it is added to the collection. (I added it here )
Expected behavior
When a book is moved from one collection to another, it should not exist in the previous collection where it initially was.
Current behavior
Tested in NCBI site:
If the book is inside of group in a collection, if you move the book to another collection, it will be duplicated. See the examples I shared above for this book here.
Coko QA Testing on MR from Bela:
In MR !804 (closed), I created a funded collection with 5 books:
- Z-XML individual chapters
- Y-XML whole book
- X-PDF individual chapters (added to the collection after creation)
- V-PDF wholebook
- U-Word individual chapters
Then I created a new funded collection and I moved all the books into this new collection by changing the settings modal of each book.
- In my first try, the duplicated books were V and X.
- Created another collection, and after moving the books there in the same way, only book U was duplicated.
- 3rd try: the duplicated books were U, Y and Z.
- 4th try: the duplicated books were U and X.
As you can see, I can't tell which book gets duplicated but in this scenario there was always at least one book getting duplicated.