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

(-)a/C4/Category.pm (-8 / +6 lines)
Lines 71-83 C<description>. Link Here
71
=cut
71
=cut
72
72
73
sub all {
73
sub all {
74
    my ($class) = @_;
74
    my $class = shift;
75
    my $dbh = C4::Context->dbh;
75
    map {
76
    return    map { $class->new($_) }    @{$dbh->selectall_arrayref(
76
        utf8::encode($_->{description});
77
        # The categories table is small enough for
77
        $class->new($_);
78
        # `SELECT *` to be harmless.
78
    } @{C4::Context->dbh->selectall_arrayref(
79
        "SELECT * FROM categories ORDER BY description",
79
        "SELECT * FROM categories ORDER BY description", { Slice => {} }
80
        { Slice => {} },
81
    )};
80
    )};
82
}
81
}
83
82
84
- 

Return to bug 6989