Bug 31313: (QA follow-up) Prefetch checkouts and branches
This prefetches objects we are using in templates to avoid extar DB calls The branch fetches won't actually be used without the extra patch on 31314 that adapts home_branch and holding_branch routines to use result objects Signed-off-by: Nick Clemens <nick@bywatersolutions.com> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
parent
c46b2ab1cd
commit
05be7300ac
|
|
@ -501,7 +501,8 @@ $items = Koha::Items->search_ordered(
|
|||
$biblio->host_items->get_column('itemnumber')
|
||||
]
|
||||
}
|
||||
]
|
||||
],
|
||||
{ prefetch => [ 'issue', 'homebranch', 'holdingbranch' ] }
|
||||
)->filter_by_visible_in_opac({ patron => $patron }) unless $specific_item;
|
||||
|
||||
my $dat = &GetBiblioData($biblionumber);
|
||||
|
|
|
|||
Loading…
Reference in New Issue