Bug 9951: Followup for Tools
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Tue, 2 Apr 2013 12:06:02 +0000 (14:06 +0200)
committerJared Camins-Esakov <jcamins@cpbibliography.com>
Sat, 20 Apr 2013 03:25:48 +0000 (23:25 -0400)
Adds decoding for Patron Cards/Patron Search and Tags (moderation).

Test plan:
Goto Tools. Add accent with diacritics in both areas. Check if you do not see
converted characters.

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
patroncards/members-search.pl
tags/review.pl

index ef7a776..8ab249b 100755 (executable)
@@ -34,6 +34,7 @@ my $startfrom = $cgi->param('startfrom')||1;
 my $resultsperpage = $cgi->param('resultsperpage')||C4::Context->preference("PatronsPerPage")||20;
 my $category = $cgi->param('category') || undef;
 my $member = $cgi->param('member') || '';
+utf8::decode($member);
 my $orderby = $cgi->param('orderby') || undef;
 
 my @categories=C4::Category->all;
index 3b7a0a0..5405924 100755 (executable)
@@ -23,7 +23,7 @@ use warnings;
 use strict;
 use Data::Dumper;
 use POSIX;
-use CGI;
+use CGI qw/-utf8/;
 use CGI::Cookie; # need to check cookies before having CGI parse the POST request
 
 use C4::Auth qw(:DEFAULT check_cookie_auth);