View | Details | Raw Unified | Return to bug 11944
Collapse All | Expand All

(-)a/C4/ItemType.pm (-4 lines)
Lines 82-88 sub all { Link Here
82
    for ( @{$dbh->selectall_arrayref(
82
    for ( @{$dbh->selectall_arrayref(
83
        "SELECT * FROM itemtypes ORDER BY description", { Slice => {} })} )
83
        "SELECT * FROM itemtypes ORDER BY description", { Slice => {} })} )
84
    {
84
    {
85
        $_->{description} = Encode::encode('UTF-8', $_->{description});
86
        push @itypes, $class->new($_);
85
        push @itypes, $class->new($_);
87
    }
86
    }
88
    return @itypes;
87
    return @itypes;
Lines 105-113 sub get { Link Here
105
    my $data = $dbh->selectrow_hashref(
104
    my $data = $dbh->selectrow_hashref(
106
        "SELECT * FROM itemtypes WHERE itemtype = ?", undef, $itemtype
105
        "SELECT * FROM itemtypes WHERE itemtype = ?", undef, $itemtype
107
    );
106
    );
108
    if ( $data->{description} ) {
109
        $data->{description} = Encode::encode('UTF-8', $data->{description});
110
    }
111
    return $class->new($data);
107
    return $class->new($data);
112
}
108
}
113
109
(-)a/admin/item_circulation_alerts.pl (-10 lines)
Lines 35-49 use C4::Output; Link Here
35
# shortcut for long package name
35
# shortcut for long package name
36
our $preferences = 'C4::ItemCirculationAlertPreference';
36
our $preferences = 'C4::ItemCirculationAlertPreference';
37
37
38
# utf8 filter
39
sub utf8 {
40
    my ($data, @keys) = @_;
41
    for (@keys) {
42
        $data->{$_} = decode('utf8', $data->{$_});
43
    }
44
    $data;
45
}
46
47
# prepend "br_" to column name and replace spaces with "<br/>"
38
# prepend "br_" to column name and replace spaces with "<br/>"
48
sub br {
39
sub br {
49
    my ($data, @keys) = @_;
40
    my ($data, @keys) = @_;
50
- 

Return to bug 11944