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

(-)a/Koha/I18N.pm (-3 / +3 lines)
Lines 255-265 sub db_t { Link Here
255
        my @targets = $rs->search(
255
        my @targets = $rs->search(
256
            {
256
            {
257
                'group' => $group,
257
                'group' => $group,
258
                'l10n_target.language' => $language,
258
                'l10n_targets.language' => $language,
259
            },
259
            },
260
            {
260
            {
261
                join => 'l10n_target',
261
                join => 'l10n_targets',
262
                prefetch => 'l10n_target',
262
                prefetch => 'l10n_targets',
263
                result_class => 'DBIx::Class::ResultClass::HashRefInflator',
263
                result_class => 'DBIx::Class::ResultClass::HashRefInflator',
264
            },
264
            },
265
        );
265
        );
(-)a/Koha/ItemType.pm (-1 / +1 lines)
Lines 90-96 Returns a localized string for the Koha::ItemType description field. Link Here
90
90
91
sub translated_description {
91
sub translated_description {
92
    my ( $self ) = @_;
92
    my ( $self ) = @_;
93
    return dt_t('itemtype', $self->translation_key);
93
    return db_t('itemtype', $self->translation_key);
94
}
94
}
95
95
96
=head3 translation_key
96
=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