Bugzilla – Attachment 132519 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 bugs
Bug-24975-Fix-bugs.patch (text/plain), 1.94 KB, created by
Martin Renvoize (ashimema)
on 2022-03-30 06:38:35 UTC
(
hide
)
Description:
Bug 24975: Fix bugs
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2022-03-30 06:38:35 UTC
Size:
1.94 KB
patch
obsolete
>From e627cbae79dbfe10ec2b27745c14769d118d11cb Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 29 Mar 2022 10:54:49 +0200 >Subject: [PATCH] Bug 24975: Fix bugs > >https://bugs.koha-community.org/show_bug.cgi?id=24875 >--- > Koha/I18N.pm | 6 +++--- > Koha/ItemType.pm | 2 +- > admin/itemtypes.pl | 1 - > 3 files changed, 4 insertions(+), 5 deletions(-) > >diff --git a/Koha/I18N.pm b/Koha/I18N.pm >index ac56b44da0..1de5b60601 100644 >--- a/Koha/I18N.pm >+++ b/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', > }, > ); >diff --git a/Koha/ItemType.pm b/Koha/ItemType.pm >index 9e66529671..705a2a7cd2 100644 >--- a/Koha/ItemType.pm >+++ b/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 >diff --git a/admin/itemtypes.pl b/admin/itemtypes.pl >index 6063348b9e..2fc4b067c2 100755 >--- a/admin/itemtypes.pl >+++ b/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'); >-- >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