From 13fdebf6509e999c8b6907df368e6076fece94a5 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Thu, 28 Mar 2013 13:06:23 +0100 Subject: [PATCH] Bug 6554 Followup for circulation patron search Content-Type: text/plain; charset="utf-8" Adds decoding for patron name. Test plan: Go to Circulation. Enter a name with a diacritic. Find that patron or get a message with the name you entered without converted characters. --- circ/circulation.pl | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/circ/circulation.pl b/circ/circulation.pl index 24b1576..395aac0 100755 --- a/circ/circulation.pl +++ b/circ/circulation.pl @@ -24,6 +24,8 @@ use strict; use warnings; use CGI; +use URI::Escape; + use C4::Output; use C4::Print; use C4::Auth qw/:DEFAULT get_session/; @@ -101,7 +103,8 @@ my @failedreturns = $query->param('failedreturn'); our %return_failed = (); for (@failedreturns) { $return_failed{$_} = 1; } -my $findborrower = $query->param('findborrower') || q{}; +my $findborrower = uri_unescape($query->param('findborrower')) || q{}; +utf8::decode($findborrower); $findborrower =~ s|,| |g; my $borrowernumber = $query->param('borrowernumber'); -- 1.7.7.6