Bug 27272 - Move C4::Items::GetItemsInfo to Koha namespace
Summary: Move C4::Items::GetItemsInfo to Koha namespace
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Architecture, internals, and plumbing (show other bugs)
Version: master
Hardware: All All
: P5 - low enhancement (vote)
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-12-18 02:58 UTC by Aleisha Amohia
Modified: 2020-12-20 19:58 UTC (History)
1 user (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Aleisha Amohia 2020-12-18 02:58:09 UTC

    
Comment 1 Tomás Cohen Arazi 2020-12-18 03:08:05 UTC
This method should just be removed and a mix of things used instead:

my $biblio = Koha::Biblios->find($biblio_id, {prefetch =>['items', 'biblioitem'] });
my @items = $biblio->items;
my $biblioitem = $biblio->biblioitem;

^^^ could do most of it.
Comment 2 Aleisha Amohia 2020-12-20 19:58:01 UTC
Good tip, Tomás! I'll do that when I begin this patch.