Bugzilla – Attachment 56421 Details for
Bug 16907
Move DelMember and HandleDelBorrower to Koha::Patron
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[PASSED QA] Bug 16907: Make sure the log will be written only if the patron has been deleted
PASSED-QA-Bug-16907-Make-sure-the-log-will-be-writ.patch (text/plain), 1.08 KB, created by
Martin Renvoize (ashimema)
on 2016-10-13 15:36:38 UTC
(
hide
)
Description:
[PASSED QA] Bug 16907: Make sure the log will be written only if the patron has been deleted
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2016-10-13 15:36:38 UTC
Size:
1.08 KB
patch
obsolete
>From 0e5b64eee1bdafb56d74a117402b5a69be34678f Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 9 Aug 2016 10:17:18 +0100 >Subject: [PATCH] [PASSED QA] Bug 16907: Make sure the log will be written only > if the patron has been deleted > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> > >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > Koha/Patron.pm | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > >diff --git a/Koha/Patron.pm b/Koha/Patron.pm >index 6692348..84c49c7 100644 >--- a/Koha/Patron.pm >+++ b/Koha/Patron.pm >@@ -83,8 +83,9 @@ sub delete { > # FIXME Could be $patron->get_lists > $_->delete for Koha::Virtualshelves->search( { owner => $self->borrowernumber } ); > >- logaction( "MEMBERS", "DELETE", $self->borrowernumber, "" ) if C4::Context->preference("BorrowersLog"); > $deleted = $self->SUPER::delete; >+ >+ logaction( "MEMBERS", "DELETE", $self->borrowernumber, "" ) if C4::Context->preference("BorrowersLog"); > } > ); > return $deleted; >-- >2.1.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 16907
:
53327
|
53328
|
53523
|
53524
|
54184
|
54401
|
54402
|
54403
|
56342
|
56343
|
56344
|
56419
|
56420
| 56421