Bugzilla – Attachment 7565 Details for
Bug 7526
longoverdue.pl leaves items marked as lost as still checked out to patron
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 7526 - longoverdue.pl leaves items marked as lost as still checked out to patron
Bug-7526---longoverduepl-leaves-items-marked-as-lo.patch (text/plain), 1.45 KB, created by
Kyle M Hall
on 2012-02-10 15:16:24 UTC
(
hide
)
Description:
Bug 7526 - longoverdue.pl leaves items marked as lost as still checked out to patron
Filename:
MIME Type:
Creator:
Kyle M Hall
Created:
2012-02-10 15:16:24 UTC
Size:
1.45 KB
patch
obsolete
>From 98403a3658cc957fc5c8130b22b04ba2f1088814 Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Fri, 10 Feb 2012 10:12:20 -0500 >Subject: [PATCH] Bug 7526 - longoverdue.pl leaves items marked as lost as still checked out to patron > >When the longoverdu.pl script is run, and it marks an item as lost ( using >LostItem() ), if fails to remove the item from the borrower record. So, the >item is marked as lost, but is also still listed as checked out to the >borrower. > >This commit enables the mark_returned flag for the LostItem function as >it is called from longoverdue.pl >--- > misc/cronjobs/longoverdue.pl | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > >diff --git a/misc/cronjobs/longoverdue.pl b/misc/cronjobs/longoverdue.pl >index 5dca494..313b087 100755 >--- a/misc/cronjobs/longoverdue.pl >+++ b/misc/cronjobs/longoverdue.pl >@@ -161,7 +161,7 @@ foreach my $startrange (sort keys %$lost) { > printf ("Due %s: item %5s from borrower %5s to lost: %s\n", $row->{date_due}, $row->{itemnumber}, $row->{borrowernumber}, $lostvalue) if($verbose); > if($confirm) { > ModItem({ itemlost => $lostvalue }, $row->{'biblionumber'}, $row->{'itemnumber'}); >- LostItem($row->{'itemnumber'}, undef, 'CHARGE FEE') if( $charge && $charge eq $lostvalue); >+ LostItem($row->{'itemnumber'}, 1, 'CHARGE FEE') if( $charge && $charge eq $lostvalue); > } > $count++; > } >-- >1.7.2.5
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 7526
:
7565
|
7569
|
7570
|
8244