Bugzilla – Attachment 185372 Details for
Bug 40641
Patron.pm can create warnings
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 40641: Fallback to empty values when logging action
Bug-40641-Fallback-to-empty-values-when-logging-ac.patch (text/plain), 1.46 KB, created by
Lucas Gass (lukeg)
on 2025-08-13 14:29:09 UTC
(
hide
)
Description:
Bug 40641: Fallback to empty values when logging action
Filename:
MIME Type:
Creator:
Lucas Gass (lukeg)
Created:
2025-08-13 14:29:09 UTC
Size:
1.46 KB
patch
obsolete
>From 8663079d7d4c32afc922fa6dfb4eddfd6316ba68 Mon Sep 17 00:00:00 2001 >From: Lucas Gass <lucas@bywatersolutions.com> >Date: Tue, 12 Aug 2025 21:53:08 +0000 >Subject: [PATCH] Bug 40641: Fallback to empty values when logging action > >Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> >--- > Koha/Patron.pm | 12 ++++++------ > 1 file changed, 6 insertions(+), 6 deletions(-) > >diff --git a/Koha/Patron.pm b/Koha/Patron.pm >index 3889d9be1a0..ba02f1c08e0 100644 >--- a/Koha/Patron.pm >+++ b/Koha/Patron.pm >@@ -795,13 +795,13 @@ sub merge_with { > > if ( C4::Context->preference("BorrowersLog") ) { > my $info = >- $patron->firstname . " " >- . $patron->surname . " (" >- . $patron->cardnumber . ")" >+ ( $patron->firstname // "" ) . " " >+ . ( $patron->surname // "" ) . " (" >+ . ( $patron->cardnumber // "" ) . ")" > . " has been merged into " >- . $self->firstname . " " >- . $self->surname . " (" >- . $self->cardnumber . ")"; >+ . ( $self->firstname // "" ) . " " >+ . ( $self->surname // "" ) . " (" >+ . ( $self->cardnumber // "" ) . ")"; > logaction( "MEMBERS", "PATRON_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 40641
:
185356
|
185372
|
185373