Bugzilla – Attachment 37115 Details for
Bug 9011
Add the ability to store the last patron to return an item
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 9011 - Add support for StoreLastBorrower to AnonymiseIssueHistory
Bug-9011---Add-support-for-StoreLastBorrower-to-An.patch (text/plain), 1.37 KB, created by
Kyle M Hall (khall)
on 2015-03-23 11:59:32 UTC
(
hide
)
Description:
Bug 9011 - Add support for StoreLastBorrower to AnonymiseIssueHistory
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2015-03-23 11:59:32 UTC
Size:
1.37 KB
patch
obsolete
>From c48f5ea1153c9c957720678119783fa47e1ea0a9 Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Wed, 5 Mar 2014 11:45:08 -0500 >Subject: [PATCH] Bug 9011 - Add support for StoreLastBorrower to AnonymiseIssueHistory > >Signed-off-by: Nick Clemens <nick@quecheelibrary.org> >--- > C4/Circulation.pm | 6 ++++++ > 1 files changed, 6 insertions(+), 0 deletions(-) > >diff --git a/C4/Circulation.pm b/C4/Circulation.pm >index f545c41..e7db474 100644 >--- a/C4/Circulation.pm >+++ b/C4/Circulation.pm >@@ -3179,12 +3179,18 @@ sub AnonymiseIssueHistory { > # The anonymisation will fail quietly if AnonymousPatron is not a valid entry > my $anonymouspatron = (C4::Context->preference('AnonymousPatron')) ? C4::Context->preference('AnonymousPatron') : 0; > my @bind_params = ($anonymouspatron, $date); >+ > if (defined $borrowernumber) { > $query .= " AND borrowernumber = ?"; > push @bind_params, $borrowernumber; > } else { > $query .= " AND (SELECT privacy FROM borrowers WHERE borrowers.borrowernumber=old_issues.borrowernumber) <> 0"; > } >+ >+ if ( C4::Context->preference('StoreLastBorrower') ) { >+ $query .= " AND issue_id IN ( SELECT issue_id FROM old_issues GROUP BY itemnumber ORDER BY issue_id DESC ) "; >+ } >+ > my $sth = $dbh->prepare($query); > $sth->execute(@bind_params); > my $anonymisation_err = $dbh->err; >-- >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 9011
:
13258
|
15117
|
15200
|
16666
|
16763
|
16773
|
18676
|
20180
|
20181
|
20329
|
20342
|
20343
|
20344
|
22577
|
22578
|
22579
|
25866
|
25867
|
25868
|
25869
|
25870
|
25871
|
25872
|
25873
|
28923
|
28924
|
28925
|
29301
|
29745
|
29749
|
29750
|
29930
|
29931
|
30979
|
30993
|
30994
|
30995
|
30996
|
30997
|
30998
|
30999
|
32430
|
32431
|
32432
|
32433
|
32434
|
32435
|
32436
|
32437
|
32438
|
32439
|
32440
|
32441
|
32442
|
32443
|
32977
|
37113
|
37114
|
37115
|
37116
|
37117
|
38441
|
38442
|
38443
|
38444
|
38445
|
39812
|
39813
|
39814
|
39815
|
39816