Bug 8215 follow-up encoding for branches & itemtypes
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Corinne Bulac <corinne.hayet@bulac.fr> Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
This commit is contained in:
parent
be869ab279
commit
a38032e469
2 changed files with 4 additions and 2 deletions
|
@ -21,6 +21,7 @@ use Modern::Perl;
|
|||
|
||||
use Template::Plugin;
|
||||
use base qw( Template::Plugin );
|
||||
use Encode qw{encode decode};
|
||||
|
||||
use C4::Koha;
|
||||
|
||||
|
@ -31,7 +32,7 @@ sub GetName {
|
|||
my $sth = C4::Context->dbh->prepare($query);
|
||||
$sth->execute($branchcode);
|
||||
my $b = $sth->fetchrow_hashref();
|
||||
return $b->{'branchname'};
|
||||
return encode('UTF-8', $b->{'branchname'});
|
||||
}
|
||||
|
||||
1;
|
||||
|
|
|
@ -21,6 +21,7 @@ use Modern::Perl;
|
|||
|
||||
use Template::Plugin;
|
||||
use base qw( Template::Plugin );
|
||||
use Encode qw{encode decode};
|
||||
|
||||
use C4::Koha;
|
||||
|
||||
|
@ -31,7 +32,7 @@ sub GetDescription {
|
|||
my $sth = C4::Context->dbh->prepare($query);
|
||||
$sth->execute($itemtype);
|
||||
my $d = $sth->fetchrow_hashref();
|
||||
return $d->{'description'};
|
||||
return encode('UTF-8', $d->{'description'});
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue