Bugzilla – Attachment 152607 Details for
Bug 33944
When listing checkouts, don't fetch item object if not using recalls
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 33944: Don't fetch item object unless using recalls
Bug-33944-Dont-fetch-item-object-unless-using-reca.patch (text/plain), 1.20 KB, created by
Katrin Fischer
on 2023-06-22 22:15:44 UTC
(
hide
)
Description:
Bug 33944: Don't fetch item object unless using recalls
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2023-06-22 22:15:44 UTC
Size:
1.20 KB
patch
obsolete
>From a31a4e80c54545c0383949686a98f066af83d2c1 Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Wed, 7 Jun 2023 18:03:07 +0000 >Subject: [PATCH] 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> >--- > svc/checkouts | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/svc/checkouts b/svc/checkouts >index bf5399aea2..12c021f01e 100755 >--- a/svc/checkouts >+++ b/svc/checkouts >@@ -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 ) { >-- >2.30.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 33944
:
152127
|
152129
| 152607