MoveBookInSeries now works and moves sub books too if needed, added better comments as the code is a bit hairy. Most importantly, this works for all known cases

This commit is contained in:
2020-11-29 16:01:53 +11:00
parent b1e6089276
commit 99f0a9fdbf
2 changed files with 25 additions and 10 deletions

2
BUGs
View File

@@ -1,6 +1,4 @@
moving a book:
with sub-books: up/down in series will fail as the book_id is not in the book_series_link
likely logic... for each sub-book... swap new book with sub-book#1, then for all other sub-books, up/down by 1
with book 6 of 11, and there is no book 7: see series (Wars of Light and Shadow)
likely logic... if no bsl2, then just increase/decrease bsl1.book_num -->
(it would also break if we had say books 1-5 & 8 and tried to move 8 down to 7)