From 8bc5c1b6b46693547b1dc97efed31f3354b6e3e4 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 17 Oct 2023 15:50:28 +0000 Subject: [PATCH] Bug 22632: (follow-up) Perltidy fixes for Koha/Patron.pm --- Koha/Patron.pm | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/Koha/Patron.pm b/Koha/Patron.pm index c03d305098..bd97f10c06 100644 --- a/Koha/Patron.pm +++ b/Koha/Patron.pm @@ -720,9 +720,16 @@ 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", "PATRON_MERGE", $self->id, $info ); + 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", "PATRON_MERGE", $self->id, $info ); } } }); -- 2.30.2