Repeat a chapter in the body division
Given a chapter that exists inside a part, trying to repeat it in the body does nothing.
Expected behaviour
A copy of that chapter should appear in the body.
Current behaviour
Nothing happens.
Steps to reproduce
- Start with a chapter that only exists inside a part
- Open the repeat modal
- Check "body" without unchecking the existing checked part
- Click save
Possible solution
The client sends an array of ids. Each id there could potentially be the body id (a division id), even though the other items in the array are part ids (book component ids). The sent division id needs to be handled and the division.bookComponents
array updated.