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

(-)a/Koha/I18N.pm (-3 / +3 lines)
Lines 254-264 sub db_t { Link Here
254
        my @targets = $rs->search(
254
        my @targets = $rs->search(
255
            {
255
            {
256
                'group' => $group,
256
                'group' => $group,
257
                'l10n_target.language' => $language,
257
                'l10n_targets.language' => $language,
258
            },
258
            },
259
            {
259
            {
260
                join => 'l10n_target',
260
                join => 'l10n_targets',
261
                prefetch => 'l10n_target',
261
                prefetch => 'l10n_targets',
262
                result_class => 'DBIx::Class::ResultClass::HashRefInflator',
262
                result_class => 'DBIx::Class::ResultClass::HashRefInflator',
263
            },
263
            },
264
        );
264
        );
(-)a/Koha/ItemType.pm (-1 / +1 lines)
Lines 46-52 Returns a localized string for the Koha::ItemType description field. Link Here
46
46
47
sub translated_description {
47
sub translated_description {
48
    my ( $self ) = @_;
48
    my ( $self ) = @_;
49
    return dt_t('itemtype', $self->translation_key);
49
    return db_t('itemtype', $self->translation_key);
50
}
50
}
51
51
52
=head3 translation_key
52
=head3 translation_key
(-)a/admin/itemtypes.pl (-2 lines)
Lines 66-72 if ( $op eq 'add_form' ) { Link Here
66
        is_a_parent => $itemtype ? Koha::ItemTypes->search({parent_type=>$itemtype_code})->count : 0,
66
        is_a_parent => $itemtype ? Koha::ItemTypes->search({parent_type=>$itemtype_code})->count : 0,
67
        imagesets => $imagesets,
67
        imagesets => $imagesets,
68
        searchcategory => $searchcategory,
68
        searchcategory => $searchcategory,
69
        branches_loop    => \@branches_loop,
70
    );
69
    );
71
} elsif ( $op eq 'add_validate' ) {
70
} elsif ( $op eq 'add_validate' ) {
72
    my $is_a_modif   = $input->param('is_a_modif');
71
    my $is_a_modif   = $input->param('is_a_modif');
73
- 

Return to bug 24975