[Koha-bugs] [Bug 34258] Cannot renew item via SIP2

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Jul 12 11:32:00 CEST 2023


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=34258

Andreas Roussos <a.roussos at dataly.gr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
           See Also|                            |https://bugs.koha-community
                   |                            |.org/bugzilla3/show_bug.cgi
                   |                            |?id=31735
           Assignee|koha-bugs at lists.koha-commun |a.roussos at dataly.gr
                   |ity.org                     |

--- Comment #1 from Andreas Roussos <a.roussos at dataly.gr> ---
The related commit is ddc2906b77 from Bug 31735, where the file
C4/SIP/ILS/Transaction/Renew.pm was modified in the following way:

@@ -64,7 +66,7 @@ sub do_renew {
     my $self = shift;
     my $patron = Koha::Patrons->find( $self->{patron}->borrowernumber );
     $patron or return; # FIXME we should log that
-    return $self->do_renew_for($patron->unblessed);
+    return $self->do_renew_for($patron);
 }

As per https://perldoc.koha-community.org/C4/Circulation.html#AddIssue,
AddIssue() expects its 1st argument ($borrower) to be " a hash with
borrower informations (from Koha::Patron->unblessed)."

This is trivial to fix, so expect a patch and updated unit tests soon.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.


More information about the Koha-bugs mailing list