@@ -, +, @@ - 4xx plugin of a UNIMARC DB - Home > Admin > Item circulation alerts - others?... - Fixes display probems in circulation alerts and 4xx UNIMARC plugin - display in other places looks ok with and without patch --- C4/ItemType.pm | 15 +++++++++------ 1 files changed, 9 insertions(+), 6 deletions(-) --- a/C4/ItemType.pm +++ a/C4/ItemType.pm @@ -73,12 +73,15 @@ C. sub all { my ($class) = @_; my $dbh = C4::Context->dbh; - return map { $class->new($_) } @{$dbh->selectall_arrayref( - # The itemtypes table is small enough for - # `SELECT *` to be harmless. - "SELECT * FROM itemtypes ORDER BY description", - { Slice => {} }, - )}; + + my @itypes; + for ( @{$dbh->selectall_arrayref( + "SELECT * FROM itemtypes ORDER BY description", { Slice => {} })} ) + { + utf8::encode($_->{description}); + push @itypes, $class->new($_); + } + return @itypes; } --