From 08dd1a495d12a8da6f17042f1dd9a178374a4b0b Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 22 Sep 2023 16:55:59 +0200 Subject: [PATCH] Bug 32496: Fix t/db_dependent/SIP/ILS.t --- C4/SIP/ILS/Transaction/Renew.pm | 2 +- t/db_dependent/SIP/ILS.t | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/C4/SIP/ILS/Transaction/Renew.pm b/C4/SIP/ILS/Transaction/Renew.pm index 0d663265432..75ce5b569af 100644 --- a/C4/SIP/ILS/Transaction/Renew.pm +++ b/C4/SIP/ILS/Transaction/Renew.pm @@ -47,7 +47,7 @@ sub do_renew_for { } if ($renewokay){ - my $issue = AddIssue( $patron->unblessed, $self->{item}->id, undef, 0 ); + my $issue = AddIssue( $patron, $self->{item}->id, undef, 0 ); $self->{due} = $self->duedatefromissue($issue, $self->{item}->{itemnumber}); $self->renewal_ok(1); } else { diff --git a/t/db_dependent/SIP/ILS.t b/t/db_dependent/SIP/ILS.t index 5943e4036e2..b0bcdbfd8d4 100755 --- a/t/db_dependent/SIP/ILS.t +++ b/t/db_dependent/SIP/ILS.t @@ -345,7 +345,7 @@ subtest renew => sub { } ); - AddIssue( $patron->unblessed, $item->barcode, undef, 0 ); + AddIssue( $patron, $item->barcode, undef, 0 ); my $checkout = $item->checkout; ok( defined($checkout), "Successfully checked out an item prior to renewal" ); -- 2.25.1