Bugzilla – Attachment 81051 Details for
Bug 21486
SIP does not return checked out (charged) items on patron_information request
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 21486: Only fetch the items' barcodes
Bug-21486-Only-fetch-the-items-barcodes.patch (text/plain), 1.30 KB, created by
Josef Moravec
on 2018-10-24 06:31:12 UTC
(
hide
)
Description:
Bug 21486: Only fetch the items' barcodes
Filename:
MIME Type:
Creator:
Josef Moravec
Created:
2018-10-24 06:31:12 UTC
Size:
1.30 KB
patch
obsolete
>From bc41da2786aa71a5bfb342d90d878ba7bafbce54 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 17 Oct 2018 12:32:11 -0300 >Subject: [PATCH] Bug 21486: Only fetch the items' barcodes > >and avoid unecessary processing > >Signed-off-by: Colin Campbell <colin.campbell@ptfs-europe.com> > >Tested and found correct AU data is returned, and passes QA test tool > >Signed-off-by: Alex Buckley <alexbuckley@catalyst.net.nz> > >Signed-off-by: Josef Moravec <josef.moravec@gmail.com> >--- > C4/SIP/ILS/Patron.pm | 7 ++++--- > 1 file changed, 4 insertions(+), 3 deletions(-) > >diff --git a/C4/SIP/ILS/Patron.pm b/C4/SIP/ILS/Patron.pm >index 01bac98..3486650 100644 >--- a/C4/SIP/ILS/Patron.pm >+++ b/C4/SIP/ILS/Patron.pm >@@ -130,12 +130,13 @@ sub new { > > # FIXME: populate fine_items recall_items > $ilspatron{unavail_holds} = _get_outstanding_holds($kp->{borrowernumber}); >+ > my $pending_checkouts = $patron->pending_checkouts; >- my @items_infos; >+ my @barcodes; > while ( my $c = $pending_checkouts->next ) { >- push @items_infos, $c->unblessed_all_relateds; >+ push @barcodes, { barcode => $c->item->barcode }; > } >- $ilspatron{items} = \@items_infos; >+ $ilspatron{items} = \@barcodes; > > $self = \%ilspatron; > $debug and warn Dumper($self); >-- >2.1.4
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 21486
:
80251
|
80522
|
80655
|
80729
|
80730
|
80976
|
81001
|
81002
|
81050
| 81051