@@ -, +, @@ --- C4/ItemType.pm | 4 ---- admin/item_circulation_alerts.pl | 9 --------- 2 files changed, 0 insertions(+), 13 deletions(-) --- a/C4/ItemType.pm +++ a/C4/ItemType.pm @@ -82,7 +82,6 @@ sub all { for ( @{$dbh->selectall_arrayref( "SELECT * FROM itemtypes ORDER BY description", { Slice => {} })} ) { - $_->{description} = Encode::encode('UTF-8', $_->{description}); push @itypes, $class->new($_); } return @itypes; @@ -105,9 +104,6 @@ sub get { my $data = $dbh->selectrow_hashref( "SELECT * FROM itemtypes WHERE itemtype = ?", undef, $itemtype ); - if ( $data->{description} ) { - $data->{description} = Encode::encode('UTF-8', $data->{description}); - } return $class->new($data); } --- a/admin/item_circulation_alerts.pl +++ a/admin/item_circulation_alerts.pl @@ -35,15 +35,6 @@ use C4::Output; # shortcut for long package name our $preferences = 'C4::ItemCirculationAlertPreference'; -# utf8 filter -sub utf8 { - my ($data, @keys) = @_; - for (@keys) { - $data->{$_} = decode('utf8', $data->{$_}); - } - $data; -} - # prepend "br_" to column name and replace spaces with "
" sub br { my ($data, @keys) = @_; --