To recreate: 1 - Set syspref MarkLostItemsAsReturned to 'when receiving payment for the item' only 2 - Find an item, add a replacement cost, check it out to a patron 3 - Ensure system preference OpacPrivacy is set to Allow 4 - Sign in to OPAC as the patron and set privacy to 'Never' 5 - Pay the lost fine on the item 6 - Item is returned 7 - Check circulation history in staff client - you are told no history is kept 8 - Check patron's checkout history on OPAC 9 - You still see the lost item
Koha/Account/Line uses 'ReturnLostItem' which calls MarkIssueReturned without passing the privacy parameter