Bugzilla – Attachment 187063 Details for
Bug 40866
Weird and untranslatable message appears every time something is checked out
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 40866: Move or remove other variables added with the message
0001-Bug-40866-Move-or-remove-other-variables-added-with-.patch (text/plain), 2.02 KB, created by
Michael Hafen
on 2025-09-29 17:31:42 UTC
(
hide
)
Description:
Bug 40866: Move or remove other variables added with the message
Filename:
MIME Type:
Creator:
Michael Hafen
Created:
2025-09-29 17:31:42 UTC
Size:
2.02 KB
patch
obsolete
>From 92d25adffb9bd84d2858ff44c7b82d05239008a6 Mon Sep 17 00:00:00 2001 >From: Michael Hafen <michael.hafen@washk12.org> >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 >
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 40866
:
186985
|
186986
|
187063
|
187116