Bug 33944: Don't fetch item object unless using recalls
To test:
1 - Check someitems out to a patron
2 - View thier checkouts
3 - Apply patch, restart_all
4 - Confirm checkouts load as before
5 - Enable recalls
6 - Recall an item checked out to this patron
7 - Confirm recall shows as expected
Signed-off-by: Sam Lau <samalau@gmail.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 4610bc64eb
)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
parent
5799f4bed2
commit
9df75ef0cb
1 changed files with 1 additions and 1 deletions
|
@ -216,9 +216,9 @@ while ( my $c = $sth->fetchrow_hashref() ) {
|
|||
}
|
||||
my @subtitles = split(/ \| /, $c->{'subtitle'} // '' );
|
||||
|
||||
my $item = Koha::Items->find( $c->{itemnumber} );
|
||||
my $recalled = 0;
|
||||
if ( C4::Context->preference('UseRecalls') ) {
|
||||
my $item = Koha::Items->find( $c->{itemnumber} );
|
||||
my $recall = undef;
|
||||
$recall = $item->check_recalls if $item->can_be_waiting_recall;
|
||||
if ( defined $recall ) {
|
||||
|
|
Loading…
Reference in a new issue