From c4601faf13c5e7209e085e177048a2deb088c17c Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Tue, 14 Sep 2010 20:38:24 +1200 Subject: [PATCH] Bug: 4904: Problem with printing fines in overdue notices my $formatted_fine = currency_format("$1", "$fine", FMT_SYMBOL); is already utf-8. Resend with additional change, removing 2 lines (no strict, use strict) from the code. Signed-off-by: Chris Cormack Signed-off-by: Galen Charlton --- misc/cronjobs/overdue_notices.pl | 3 --- 1 file changed, 3 deletions(-) diff --git a/misc/cronjobs/overdue_notices.pl b/misc/cronjobs/overdue_notices.pl index 4de6cdd0a4..2e7b2e4403 100755 --- a/misc/cronjobs/overdue_notices.pl +++ b/misc/cronjobs/overdue_notices.pl @@ -662,10 +662,7 @@ sub parse_letter { # FIXME: this code should probably be moved to C4::Letters:pa $item_format = $1; } if ($params->{'letter'}->{'content'} =~ m/(.*)<\/fine>/) { # process any fine tags... - no strict; # currency_format behaves badly if we quote the bareword for some reason... my $formatted_fine = currency_format("$1", "$fine", FMT_SYMBOL); - use strict; - $formatted_fine = Encode::encode("utf8", $formatted_fine); $params->{'letter'}->{'content'} =~ s/.*<\/fine>/$formatted_fine/; } $params->{'letter'} = C4::Letters::parseletter( $params->{'letter'}, 'biblio', $item ); -- 2.39.5