Bugzilla – Attachment 54184 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]
Bug 16907: Make sure the log will be written only if the patron has been deleted
Bug-16907-Make-sure-the-log-will-be-written-only-i.patch (text/plain), 976 bytes, created by
Jonathan Druart
on 2016-08-09 09:17:43 UTC
(
hide
)
Description:
Bug 16907: Make sure the log will be written only if the patron has been deleted
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2016-08-09 09:17:43 UTC
Size:
976 bytes
patch
obsolete
>From 69108be22276f4677846c98569ecb33d4acc6f3c 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] Bug 16907: Make sure the log will be written only if the > patron has been deleted > >--- > Koha/Patron.pm | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > >diff --git a/Koha/Patron.pm b/Koha/Patron.pm >index ba9f3b7..cdd1582 100644 >--- a/Koha/Patron.pm >+++ b/Koha/Patron.pm >@@ -82,8 +82,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.8.1
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