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

(-)a/Koha/ItemType.pm (-1 / +8 lines)
Lines 51-56 sub image_location { Link Here
51
51
52
sub translated_description {
52
sub translated_description {
53
    my ( $self, $lang ) = @_;
53
    my ( $self, $lang ) = @_;
54
    if ( my $translated_description = eval { $self->get_column('translated_description') } ) {
55
        # If the value has already been fetched (eg. from sarch_with_localization),
56
        # do not search for it again
57
        # Note: This is a bit hacky but should be fast
58
        return $translated_description
59
             ? $translated_description
60
             : $self->description;
61
    }
54
    $lang ||= C4::Languages::getlanguage;
62
    $lang ||= C4::Languages::getlanguage;
55
    my $translated_description = Koha::Localizations->search({
63
    my $translated_description = Koha::Localizations->search({
56
        code => $self->itemtype,
64
        code => $self->itemtype,
57
- 

Return to bug 17835