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

(-)a/catalogue/moredetail.pl (-1 / +1 lines)
Lines 135-141 my $copynumbers = Link Here
135
135
136
my $itemtypes = { map { $_->{itemtype} => $_ } @{ Koha::ItemTypes->search->unblessed } };
136
my $itemtypes = { map { $_->{itemtype} => $_ } @{ Koha::ItemTypes->search->unblessed } };
137
137
138
$data->{'itemtypename'} = db_t('itemtype', $itemtypes->{ $data->{'itemtype'} }->{description});
138
$data->{'itemtypename'} = db_t('itemtype', $itemtypes->{ $data->{'itemtype'} }->{description})
139
  if $data->{itemtype} && exists $itemtypes->{ $data->{itemtype} };
139
  if $data->{itemtype} && exists $itemtypes->{ $data->{itemtype} };
140
foreach ( keys %{$data} ) {
140
foreach ( keys %{$data} ) {
141
    $template->param( "$_" => defined $data->{$_} ? $data->{$_} : '' );
141
    $template->param( "$_" => defined $data->{$_} ? $data->{$_} : '' );
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/localization.tt (-1 / +1 lines)
Lines 98-104 Link Here
98
                        name: 'targets',
98
                        name: 'targets',
99
                        data: 'l10n_targets',
99
                        data: 'l10n_targets',
100
                        render: function (data, type, row, meta) {
100
                        render: function (data, type, row, meta) {
101
                            const languages = [% languages.json %];
101
                            const languages = [% languages.json | $raw %];
102
                            const translations = Object.fromEntries(data.map(translation => [translation.language, translation]));
102
                            const translations = Object.fromEntries(data.map(translation => [translation.language, translation]));
103
                            let output = '';
103
                            let output = '';
104
                            for (const language of languages) {
104
                            for (const language of languages) {
(-)a/reports/issues_stats.pl (-2 / +1 lines)
Lines 451-457 sub calculate { Link Here
451
        $cell{coltitle_display} =
451
        $cell{coltitle_display} =
452
            ( $column =~ /ccode/ )    ? $ccodes->{$celvalue}
452
            ( $column =~ /ccode/ )    ? $ccodes->{$celvalue}
453
          : ( $column =~ /location/ ) ? $locations->{$celvalue}
453
          : ( $column =~ /location/ ) ? $locations->{$celvalue}
454
          : ( $column =~ /itemtype/ ) ? db_t('itemtype', $itemtypes_map->{$celvalue}->{description});
454
          : ( $column =~ /itemtype/ ) ? db_t('itemtype', $itemtypes_map->{$celvalue}->{description})
455
          :                             $celvalue;                               # default fallback
455
          :                             $celvalue;                               # default fallback
456
        if ( $column =~ /sort1/ ) {
456
        if ( $column =~ /sort1/ ) {
457
            foreach (@$Bsort1) {
457
            foreach (@$Bsort1) {
458
- 

Return to bug 24975