Bugzilla – Attachment 132524 Details for
Bug 24975
Refactor database translations
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.70 KB, created by
Martin Renvoize (ashimema)
on 2022-03-30 06:43:22 UTC
(
hide
)
Description:
Bug 24975: Fix syntax issues
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2022-03-30 06:43:22 UTC
Size:
2.70 KB
patch
obsolete
>From 4a6768bada1f8f8b902673949e811a7e05ba20b1 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 > >--- > 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 24975
:
101703
|
101786
|
102387
|
102388
|
102513
|
102514
|
102688
|
102701
|
132388
|
132508
|
132509
|
132510
|
132511
|
132512
|
132513
|
132514
|
132515
|
132516
|
132517
|
132518
|
132519
|
132520
|
132521
|
132522
|
132523
|
132524
|
132525
|
132526
|
132527
|
132528
|
132529
|
132530
|
132531
|
132532
|
132533
|
132546
|
132562
|
132563
|
132564
|
132565
|
132566
|
132567
|
132568
|
132569
|
132570
|
132571
|
132572
|
132573
|
132574
|
132575
|
149941
|
149942
|
149943
|
149944
|
149945
|
149946
|
149947
|
149948
|
149949
|
149950
|
149951
|
149952
|
149953
|
149954
|
149956
|
149957
|
150015
|
150033
|
150034