From 92d25adffb9bd84d2858ff44c7b82d05239008a6 Mon Sep 17 00:00:00 2001 From: Michael Hafen Date: Mon, 29 Sep 2025 11:30:32 -0600 Subject: [PATCH] Bug 40866: Move or remove other variables added with the message Content-Type: text/plain; charset="utf-8" --- circ/circulation.pl | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/circ/circulation.pl b/circ/circulation.pl index 4d37cf4f71..527f2e1f46 100755 --- a/circ/circulation.pl +++ b/circ/circulation.pl @@ -566,19 +566,16 @@ if ( @$barcodes && $op eq 'cud-checkout' ) { ); $template_params->{issue} = $issue; - my $borrower = $patron; - my $borrowernumber = $patron->borrowernumber; - my $user = C4::Context->userenv->{number}; - my $branchcode = C4::Context->userenv->{branch}; - if ($issueconfirmed) { + my $user = C4::Context->userenv->{number}; + my $branchcode = C4::Context->userenv->{branch}; $message = __("Restriction overridden temporarily"); @message = ( __("Restriction overridden temporarily") ); my $infos = ( { message => \@message, - borrowernumber => $borrowernumber, + borrowernumber => $patron->borrowernumber, barcode => $barcode, manager_id => $user, branchcode => $branchcode, @@ -590,7 +587,7 @@ if ( @$barcodes && $op eq 'cud-checkout' ) { logaction( "CIRCULATION", "ISSUE", - $borrower->{'borrowernumber'}, + $patron->borrowernumber, $json_infos, ) if C4::Context->preference("IssueLog"); } -- 2.43.0