@@ -, +, @@ --- Koha/I18N.pm | 6 +++--- Koha/ItemType.pm | 2 +- admin/itemtypes.pl | 1 - 3 files changed, 4 insertions(+), 5 deletions(-) --- a/Koha/I18N.pm +++ a/Koha/I18N.pm @@ -254,11 +254,11 @@ sub db_t { my @targets = $rs->search( { 'group' => $group, - 'l10n_target.language' => $language, + 'l10n_targets.language' => $language, }, { - join => 'l10n_target', - prefetch => 'l10n_target', + join => 'l10n_targets', + prefetch => 'l10n_targets', result_class => 'DBIx::Class::ResultClass::HashRefInflator', }, ); --- a/Koha/ItemType.pm +++ a/Koha/ItemType.pm @@ -46,7 +46,7 @@ Returns a localized string for the Koha::ItemType description field. sub translated_description { my ( $self ) = @_; - return dt_t('itemtype', $self->translation_key); + return db_t('itemtype', $self->translation_key); } =head3 translation_key --- a/admin/itemtypes.pl +++ a/admin/itemtypes.pl @@ -66,7 +66,6 @@ if ( $op eq 'add_form' ) { is_a_parent => $itemtype ? Koha::ItemTypes->search({parent_type=>$itemtype_code})->count : 0, imagesets => $imagesets, searchcategory => $searchcategory, - branches_loop => \@branches_loop, ); } elsif ( $op eq 'add_validate' ) { my $is_a_modif = $input->param('is_a_modif'); --