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

(-)buggy/getitem-ajax.pl (-1 / +1 lines)
Lines 73-79 Link Here
73
    $item->{materials} = $descriptions->{lib} // '';
73
    $item->{materials} = $descriptions->{lib} // '';
74
74
75
    my $itemtype = Koha::ItemTypes->find( $item->{itype} );
75
    my $itemtype = Koha::ItemTypes->find( $item->{itype} );
76
    $item->{itemtype} = $itemtype->description; # FIXME Should not it be translated_description?
76
    $item->{itemtype} = $itemtype->description if $itemtype; # FIXME Should not it be translated_description?
77
}
77
}
78
78
79
my $json_text = to_json( $item, { utf8 => 1 } );
79
my $json_text = to_json( $item, { utf8 => 1 } );
(-)buggy/summary-print.pl (-1 / +1 lines)
Lines 104-110 Link Here
104
          GetIssuingCharges( $issue->{itemnumber}, $borrowernumber );
104
          GetIssuingCharges( $issue->{itemnumber}, $borrowernumber );
105
105
106
        $itemtype = Koha::ItemTypes->find( $itemtype );
106
        $itemtype = Koha::ItemTypes->find( $itemtype );
107
        $row{'itemtype_description'} = $itemtype->description; #FIXME Should not it be translated_description
107
        $row{'itemtype_description'} = $itemtype->description if $itemtype; #FIXME Should not it be translated_description
108
108
109
        $row{'charge'} = sprintf( "%.2f", $charge );
109
        $row{'charge'} = sprintf( "%.2f", $charge );
110
110
(-)buggy/transferstoreceive.pl (-1 / +1 lines)
Lines 96-102 Link Here
96
            my $itemtype = Koha::ItemTypes->find( $item->effective_itemtype );
96
            my $itemtype = Koha::ItemTypes->find( $item->effective_itemtype );
97
97
98
            $getransf{'datetransfer'} = $num->{'datesent'};
98
            $getransf{'datetransfer'} = $num->{'datesent'};
99
            $getransf{'itemtype'} = $itemtype->description; # FIXME Should not it be translated_description?
99
            $getransf{'itemtype'} = $itemtype->description if $itemtype; # FIXME Should not it be translated_description?
100
            %getransf = (
100
            %getransf = (
101
                %getransf,
101
                %getransf,
102
                title          => $biblio->title,
102
                title          => $biblio->title,
(-)buggy/waitingreserves.pl (-1 / +1 lines)
Lines 111-117 Link Here
111
    my ( $expire_year, $expire_month, $expire_day ) = split (/-/, $num->{'expirationdate'});
111
    my ( $expire_year, $expire_month, $expire_day ) = split (/-/, $num->{'expirationdate'});
112
    my $calcDate = Date_to_Days( $expire_year, $expire_month, $expire_day );
112
    my $calcDate = Date_to_Days( $expire_year, $expire_month, $expire_day );
113
113
114
    $getreserv{'itemtype'}       = $itemtype->description; # FIXME Should not it be translated_description?
114
    $getreserv{'itemtype'}       = $itemtype->description if $itemtype; # FIXME Should not it be translated_description?
115
    $getreserv{'title'}          = $biblio->title;
115
    $getreserv{'title'}          = $biblio->title;
116
    $getreserv{'subtitle'}       = GetRecordValue(
116
    $getreserv{'subtitle'}       = GetRecordValue(
117
        'subtitle',
117
        'subtitle',

Return to bug 20855