Bug 21780

Summary: LostItem should be called from ModItem
Product: Koha Reporter: Martin Renvoize <martin.renvoize>
Component: Architecture, internals, and plumbingAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low    
Version: Main   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21754
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20844
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:

Description Martin Renvoize 2018-11-07 10:53:24 UTC
Whilst QAing bug 21754 and bug 20884 I realised that the functionality related to losing an item is not very well encapsulated.  Currently LostItem is called in various places following a ModItem call.  We should move the call to LostItem inside of ModItem to lower the risk of LostItem not being applied after a ModItem call has been made.

This would be a good first step towards a more thorough refactoring of this area of the codebase and the move to the Koha:: namespace.