Bugzilla – Attachment 184493 Details for
Bug 22632
Add logging of merged patrons
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 22632: Add logging of merged patrons
Bug-22632-Add-logging-of-merged-patrons.patch (text/plain), 1.46 KB, created by
Owen Leonard
on 2025-07-22 17:50:37 UTC
(
hide
)
Description:
Bug 22632: Add logging of merged patrons
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2025-07-22 17:50:37 UTC
Size:
1.46 KB
patch
obsolete
>From 05d0d10b71edc498c9df5313069c9ce202e0e8cc Mon Sep 17 00:00:00 2001 >From: Axel Amghar <axel.amghar@gmail.com> >Date: Fri, 12 Apr 2019 11:17:33 +0200 >Subject: [PATCH] Bug 22632: Add logging of merged patrons > >without this patch , when patrons are merged , you can't see the merge in the log viewer. > > To test: > -Apply the patch > -Make sure you have "BorrowersLog" on in you System Preference > -Search patrons > -Check two ore more patrons > -Merge selected patrons > -Merge patrons > -Go to log viewer > - Make sure there is the line with the action : "Merge" >--- > Koha/Patron.pm | 12 ++++++++++++ > 1 file changed, 12 insertions(+) > >diff --git a/Koha/Patron.pm b/Koha/Patron.pm >index cfa570e0f00..60d92c93f0a 100644 >--- a/Koha/Patron.pm >+++ b/Koha/Patron.pm >@@ -792,6 +792,18 @@ sub merge_with { > > $patron->move_to_deleted(); > $patron->delete(); >+ >+ if ( C4::Context->preference("BorrowersLog") ) { >+ my $info = >+ $patron->firstname . " " >+ . $patron->surname . " (" >+ . $patron->cardnumber . ")" >+ . " has been merged into " >+ . $self->firstname . " " >+ . $self->surname . " (" >+ . $self->cardnumber . ")"; >+ logaction( "MEMBERS", "Merge", $self->id, $info ); >+ } > } > } > ); >-- >2.39.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 22632
:
87778
|
87920
|
87921
|
87922
|
87923
|
87926
|
87995
|
87996
|
87997
|
87998
|
87999
|
88043
|
88044
|
88045
|
88046
|
89728
|
89729
|
89730
|
89731
|
157260
|
157261
|
157262
|
157263
|
157264
|
157265
|
157266
|
157267
|
157268
|
157269
|
157270
|
157271
|
157278
|
157281
|
157286
|
159553
|
159554
|
159555
|
159556
|
159557
|
159558
|
184493
|
184494
|
184495
|
184496
|
184497
|
184503
|
184504
|
184505
|
184506
|
184507
|
185058
|
185059
|
185060
|
185061
|
185062
|
185063