[Koha-patches] [PATCH] (bug #3304) fix notices trigger with diacritics in categorycodes
Nahuel ANGELINETTI
nahuel.angelinetti at biblibre.com
Mon Jun 8 11:10:07 CEST 2009
This just utf8::encode the $key if needed to permit categorycodes with diacritics.
---
tools/overduerules.pl | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/tools/overduerules.pl b/tools/overduerules.pl
index e390250..d69c396 100755
--- a/tools/overduerules.pl
+++ b/tools/overduerules.pl
@@ -43,6 +43,11 @@ sub blank_row {
for my $rp (@rule_params) {
for my $n (1 .. 3) {
my $key = "${rp}${n}-$category_code";
+
+ if (utf8::is_utf8($key)) {
+ utf8::encode($key);
+ }
+
my $value = $input->param($key);
if ($value) {
return 0;
--
1.6.0.4
More information about the Koha-patches
mailing list