With Bug 27281 we removed a superflous call to update the homebranch of items in transfer. However, this highlighted a test that needed to be removed and lead to the removal of the 'skip_record_index' parameter from the method signature. This lead Nick to spot that we never passed the parameter on to MarkIssueAsReturned when we should.. This bug will add back the parameter in LostItem, add a test for the MarkIssueReturned case and start passing the parameters through properly.
Created attachment 120118 [details] [review] Bug 28210: Unit test Add a unit test to check that skip_record_index is adhered to when passed to LostItem with the force_mark_returned option enabled.
Created attachment 120119 [details] [review] Bug 28210: Pass skip_record_index through LostItem This patch restores the skip_record_index optional parameter for LostItem and passes it through to MarkIssueReturned as required.
*** Bug 28209 has been marked as a duplicate of this bug. ***
Created attachment 120179 [details] [review] Bug 28210: Unit test Add a unit test to check that skip_record_index is adhered to when passed to LostItem with the force_mark_returned option enabled. Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Created attachment 120180 [details] [review] Bug 28210: Add issue, replacementprice, and set onloan so check-in tests work Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Created attachment 120181 [details] [review] Bug 28210: Pass skip_record_index through LostItem This patch restores the skip_record_index optional parameter for LostItem and passes it through to MarkIssueReturned as required. Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
I added some data needed to make the tests pass, can you verify Martin? For testing this also requires applying the follow-ups on 24446 and 27281 While we remove/readd some code in the series I think it makes sense to remove it to fix the tests, then add it as it should have been here
Pushed to master for 21.05, thanks to everybody involved!
Depends on Bug 24446 not in 20.11.x