Bugzilla – Attachment 156006 Details for
Bug 34870
Unrecognized special characters when writing off an invoice with a note
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Bug 34870: Unrecognized special characters
Bug-34870-Unrecognized-special-characters.patch (text/plain), 1.71 KB, created by
Laura Escamilla
on 2023-09-21 20:33:35 UTC
(
hide
)
Description:
Bug 34870: Unrecognized special characters
Filename:
MIME Type:
Creator:
Laura Escamilla
Created:
2023-09-21 20:33:35 UTC
Size:
1.71 KB
patch
obsolete
>From 256bf74c45071a2a0f82b3739ac59411fb897aea Mon Sep 17 00:00:00 2001 >From: emilyrose <emily-rose.francoeur@inLibro.com> >Date: Thu, 21 Sep 2023 14:33:44 -0400 >Subject: [PATCH] Bug 34870: Unrecognized special characters >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >The informations entered in the note are encoded and sent in the 'notes' parameter of the URL. The issue arises because paycollect.pl get the information using param(), which does not support encoded text. By using param_fetch(), we can retrieve the informations without any issues. > >TEST PLAN >1) Go to any patron profile > Accounting > Create manual invoice >2) Fill the fields and click the âSaveâ button >3) Click âMake a paymentâ >4) Select the created invoice and click on â+ Add noteâ >5) Enter special characters (e.g., éçö) >6) Click the âWrite off selectedâ button >7) In the note field, you should see â�â symbols where the special characters are supposed to be >8) Apply the patch >9) Refresh the page; now the special characters display correctly > >Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> >--- > members/paycollect.pl | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/members/paycollect.pl b/members/paycollect.pl >index b189107f25..2c6fcacddc 100755 >--- a/members/paycollect.pl >+++ b/members/paycollect.pl >@@ -104,7 +104,7 @@ if ( $pay_individual || $writeoff_individual ) { > $template->param( > selected_accts => $selected_lines, > amt => $total_due, >- selected_accts_notes => scalar $input->param('notes'), >+ selected_accts_notes => scalar $input->param_fetch('notes')->[0], # get the encoded value > ); > } > >-- >2.30.2
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 Raw
Actions:
View
Attachments on
bug 34870
:
156005
|
156006
|
156120
|
156357
|
156363