Bugzilla – Attachment 132498 Details for
Bug 24875
Remove extra punctuation from tools home page
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24975: Fix syntax issues
Bug-24975-Fix-syntax-issues.patch (text/plain), 2.75 KB, created by
Martin Renvoize
on 2022-03-30 06:32:30 UTC
(
hide
)
Description:
Bug 24975: Fix syntax issues
Filename:
MIME Type:
Creator:
Martin Renvoize
Created:
2022-03-30 06:32:30 UTC
Size:
2.75 KB
patch
obsolete
>From 65e93f67cf003678b755028ae6de72a2c3ae9747 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Fri, 10 Apr 2020 13:15:23 +0200 >Subject: [PATCH] Bug 24975: Fix syntax issues > >https://bugs.koha-community.org/show_bug.cgi?id=24875 >--- > catalogue/moredetail.pl | 2 +- > koha-tmpl/intranet-tmpl/prog/en/modules/admin/localization.tt | 2 +- > reports/issues_stats.pl | 2 +- > 3 files changed, 3 insertions(+), 3 deletions(-) > >diff --git a/catalogue/moredetail.pl b/catalogue/moredetail.pl >index 50d1dc8ae7..7a45950e38 100755 >--- a/catalogue/moredetail.pl >+++ b/catalogue/moredetail.pl >@@ -145,7 +145,7 @@ my $copynumbers = > > my $itemtypes = { map { $_->{itemtype} => $_ } @{ Koha::ItemTypes->search->unblessed } }; > >-$data->{'itemtypename'} = db_t('itemtype', $itemtypes->{ $data->{'itemtype'} }->{description}); >+$data->{'itemtypename'} = db_t('itemtype', $itemtypes->{ $data->{'itemtype'} }->{description}) > if $data->{itemtype} && exists $itemtypes->{ $data->{itemtype} }; > foreach ( keys %{$data} ) { > $template->param( "$_" => defined $data->{$_} ? $data->{$_} : '' ); >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/localization.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/localization.tt >index ead8d801d4..683b8e460f 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/localization.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/localization.tt >@@ -100,7 +100,7 @@ > name: 'targets', > data: 'l10n_targets', > render: function (data, type, row, meta) { >- const languages = [% languages.json %]; >+ const languages = [% languages.json | $raw %]; > const translations = Object.fromEntries(data.map(translation => [translation.language, translation])); > let output = ''; > for (const language of languages) { >diff --git a/reports/issues_stats.pl b/reports/issues_stats.pl >index abc44addfe..52c2687fc9 100755 >--- a/reports/issues_stats.pl >+++ b/reports/issues_stats.pl >@@ -440,7 +440,7 @@ sub calculate { > $cell{coltitle_display} = > ( $column =~ /ccode/ ) ? $ccodes->{$celvalue} > : ( $column =~ /location/ ) ? $locations->{$celvalue} >- : ( $column =~ /itemtype/ ) ? db_t('itemtype', $itemtypes_map->{$celvalue}->{description}); >+ : ( $column =~ /itemtype/ ) ? db_t('itemtype', $itemtypes_map->{$celvalue}->{description}) > : $celvalue; # default fallback > if ( $column =~ /sort1/ ) { > foreach (@$Bsort1) { >-- >2.20.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 24875
:
100720
|
100910
|
101351
|
101523
|
132495
|
132496
|
132497
|
132498
|
132499
|
132500
|
132501
|
132502
|
132503
|
132504
|
132505
|
132506
|
132507