Bug 21486: Fix 'AU' for SIP
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 12 Oct 2018 15:47:04 +0000 (12:47 -0300)
committerNick Clemens <nick@bywatersolutions.com>
Wed, 24 Oct 2018 12:40:17 +0000 (12:40 +0000)
Signed-off-by: Colin Campbell <colin.campbell@ptfs-europe.com>
Signed-off-by: Alex Buckley <alexbuckley@catalyst.net.nz>
Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
C4/SIP/ILS/Patron.pm

index 9b8cb53..01bac98 100644 (file)
@@ -130,7 +130,13 @@ sub new {
 
     # FIXME: populate fine_items recall_items
     $ilspatron{unavail_holds} = _get_outstanding_holds($kp->{borrowernumber});
-    $ilspatron{items} = $patron->pending_checkouts->unblessed;
+    my $pending_checkouts = $patron->pending_checkouts;
+    my @items_infos;
+    while ( my $c = $pending_checkouts->next ) {
+        push @items_infos, $c->unblessed_all_relateds;
+    }
+    $ilspatron{items} = \@items_infos;
+
     $self = \%ilspatron;
     $debug and warn Dumper($self);
     syslog("LOG_DEBUG", "new ILS::Patron(%s): found patron '%s'", $patron_id,$self->{id});