Bugzilla – Attachment 30995 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]
[SIGNED OFF] Bug 9011 - Add support for StoreLastBorrower to AnonymiseIssueHistory
SIGNED-OFF-Bug-9011---Add-support-for-StoreLastBor.patch (text/plain), 1.37 KB, created by
Nick Clemens (kidclamp)
on 2014-08-19 20:19:24 UTC
(
hide
)
Description:
[SIGNED OFF] Bug 9011 - Add support for StoreLastBorrower to AnonymiseIssueHistory
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2014-08-19 20:19:24 UTC
Size:
1.37 KB
patch
obsolete
>From 189b47a76561c712731a6a6c4de1b2d20779e5d3 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] [SIGNED OFF] Bug 9011 - Add support for StoreLastBorrower to > AnonymiseIssueHistory > >Signed-off-by: Nick Clemens <nick@quecheelibrary.org> >--- > C4/Circulation.pm | 6 ++++++ > 1 file changed, 6 insertions(+) > >diff --git a/C4/Circulation.pm b/C4/Circulation.pm >index 44b2253..979f77a 100644 >--- a/C4/Circulation.pm >+++ b/C4/Circulation.pm >@@ -3092,12 +3092,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.10.4
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