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

(-)a/catalogue/moredetail.pl (-1 / +1 lines)
Lines 145-151 my $copynumbers = Link Here
145
145
146
my $itemtypes = { map { $_->{itemtype} => $_ } @{ Koha::ItemTypes->search->unblessed } };
146
my $itemtypes = { map { $_->{itemtype} => $_ } @{ Koha::ItemTypes->search->unblessed } };
147
147
148
$data->{'itemtypename'} = db_t('itemtype', $itemtypes->{ $data->{'itemtype'} }->{description});
148
$data->{'itemtypename'} = db_t('itemtype', $itemtypes->{ $data->{'itemtype'} }->{description})
149
  if $data->{itemtype} && exists $itemtypes->{ $data->{itemtype} };
149
  if $data->{itemtype} && exists $itemtypes->{ $data->{itemtype} };
150
foreach ( keys %{$data} ) {
150
foreach ( keys %{$data} ) {
151
    $template->param( "$_" => defined $data->{$_} ? $data->{$_} : '' );
151
    $template->param( "$_" => defined $data->{$_} ? $data->{$_} : '' );
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/localization.tt (-1 / +1 lines)
Lines 100-106 Link Here
100
                        name: 'targets',
100
                        name: 'targets',
101
                        data: 'l10n_targets',
101
                        data: 'l10n_targets',
102
                        render: function (data, type, row, meta) {
102
                        render: function (data, type, row, meta) {
103
                            const languages = [% languages.json %];
103
                            const languages = [% languages.json | $raw %];
104
                            const translations = Object.fromEntries(data.map(translation => [translation.language, translation]));
104
                            const translations = Object.fromEntries(data.map(translation => [translation.language, translation]));
105
                            let output = '';
105
                            let output = '';
106
                            for (const language of languages) {
106
                            for (const language of languages) {
(-)a/reports/issues_stats.pl (-2 / +1 lines)
Lines 440-446 sub calculate { Link Here
440
        $cell{coltitle_display} =
440
        $cell{coltitle_display} =
441
            ( $column =~ /ccode/ )    ? $ccodes->{$celvalue}
441
            ( $column =~ /ccode/ )    ? $ccodes->{$celvalue}
442
          : ( $column =~ /location/ ) ? $locations->{$celvalue}
442
          : ( $column =~ /location/ ) ? $locations->{$celvalue}
443
          : ( $column =~ /itemtype/ ) ? db_t('itemtype', $itemtypes_map->{$celvalue}->{description});
443
          : ( $column =~ /itemtype/ ) ? db_t('itemtype', $itemtypes_map->{$celvalue}->{description})
444
          :                             $celvalue;                               # default fallback
444
          :                             $celvalue;                               # default fallback
445
        if ( $column =~ /sort1/ ) {
445
        if ( $column =~ /sort1/ ) {
446
            foreach (@$Bsort1) {
446
            foreach (@$Bsort1) {
447
- 

Return to bug 24975