Bug 18349: $borrower is a hashref
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 31 Mar 2017 00:51:28 +0000 (21:51 -0300)
committerKyle M Hall <kyle@bywatersolutions.com>
Wed, 12 Apr 2017 18:47:01 +0000 (18:47 +0000)
I guess this code was never called before...

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
opac/sco/sco-main.pl

index 0486dd4..d209150 100755 (executable)
@@ -174,7 +174,7 @@ elsif ( $op eq "checkout" ) {
     } elsif ( $needconfirm->{RENEW_ISSUE} ) {
         if ($confirmed) {
             #warn "renewing";
-            AddRenewal( $borrower, $item->{itemnumber} );
+            AddRenewal( $borrower->{borrowernumber}, $item->{itemnumber} );
         } else {
             #warn "renew confirmation";
             $template->param(