Bugzilla – Attachment 98393 Details for
Bug 24474
Lost items that are checked out are always returned, even when attempting to renew them
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24474: A try
Bug-24474-A-try.patch (text/plain), 1.35 KB, created by
Jonathan Druart
on 2020-02-04 14:17:08 UTC
(
hide
)
Description:
Bug 24474: A try
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2020-02-04 14:17:08 UTC
Size:
1.35 KB
patch
obsolete
>From 0ee2fc47812a6225b5019b8cb5075555e78011c9 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 4 Feb 2020 15:14:22 +0100 >Subject: [PATCH] Bug 24474: A try > >This does not work >--- > Koha/Account.pm | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) > >diff --git a/Koha/Account.pm b/Koha/Account.pm >index ae6bebbb7a..8ac690c3d3 100644 >--- a/Koha/Account.pm >+++ b/Koha/Account.pm >@@ -120,7 +120,8 @@ sub pay { > && $fine->debit_type_code > && ( $fine->debit_type_code eq 'LOST' ) ) > { >- C4::Circulation::ReturnLostItem( $self->{patron_id}, $fine->itemnumber ); >+ my $checkout = Koha::Checkouts->find($fine->itemnumber); >+ C4::Circulation::ReturnLostItem( $self->{patron_id}, $fine->itemnumber ) unless $checkout; > } > > my $account_offset = Koha::Account::Offset->new( >@@ -179,7 +180,8 @@ sub pay { > && $fine->debit_type_code > && ( $fine->debit_type_code eq 'LOST' ) ) > { >- C4::Circulation::ReturnLostItem( $self->{patron_id}, $fine->itemnumber ); >+ my $checkout = Koha::Checkouts->find($fine->itemnumber); >+ C4::Circulation::ReturnLostItem( $self->{patron_id}, $fine->itemnumber ) unless $checkout; > } > > my $account_offset = Koha::Account::Offset->new( >-- >2.11.0
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 24474
:
98392
|
98393
|
98436
|
98437
|
98438
|
98439
|
98460
|
98485
|
98486
|
98487
|
98645
|
98646
|
98647
|
98648
|
98673
|
98674
|
98675
|
98676
|
98923
|
100229
|
100230
|
100231
|
100232
|
100233
|
102104
|
102105
|
102106
|
102107
|
102108
|
102109
|
102110
|
102132
|
102133
|
102134
|
102135
|
102136
|
102137
|
102138