Bug 24092

Summary: Change Koha::Item to use Items::LastPatrons instead of ItemLastBorrower resultset
Product: Koha Reporter: Agustín Moyano <agustinmoyano>
Component: Architecture, internals, and plumbingAssignee: Bugs List <koha-bugs>
Status: RESOLVED INVALID QA Contact: Testopia <testopia>
Severity: minor    
Priority: P5 - low CC: agustinmoyano, m.de.rooy, martin.renvoize, nick, tomascohen
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Bug Depends on: 23260    
Bug Blocks:    

Description Agustín Moyano 2019-11-22 15:02:46 UTC
Koha::Item uses

my $items_last_returned_by_rs = Koha::Database->new()->schema()->resultset('ItemsLastBorrower');

to retrieve item's last borrower.

It should use Items::LastPatrons class introduced in bug 23260
Comment 1 Martin Renvoize 2020-01-03 12:43:27 UTC
I'm not at all sure this is a good idea at this time.. see discussion on bug 23260
Comment 2 Nick Clemens (kidclamp) 2023-11-28 13:51:27 UTC
That module was removed from the patches - closing this