Bugzilla – Attachment 149950 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: Add to Koha::UI::Form::Builder::Item
Bug-24975-Add-to-KohaUIFormBuilderItem.patch (text/plain), 1.54 KB, created by
Jonathan Druart
on 2023-04-20 12:44:51 UTC
(
hide
)
Description:
Bug 24975: Add to Koha::UI::Form::Builder::Item
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2023-04-20 12:44:51 UTC
Size:
1.54 KB
patch
obsolete
>From e30bd50f0ea73886b3a1f633a9e759baaf78200b Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Mon, 28 Mar 2022 15:54:38 +0100 >Subject: [PATCH] Bug 24975: Add to Koha::UI::Form::Builder::Item > >--- > Koha/UI/Form/Builder/Item.pm | 7 ++++--- > 1 file changed, 4 insertions(+), 3 deletions(-) > >diff --git a/Koha/UI/Form/Builder/Item.pm b/Koha/UI/Form/Builder/Item.pm >index 3a478ee05e0..8ff8363c609 100644 >--- a/Koha/UI/Form/Builder/Item.pm >+++ b/Koha/UI/Form/Builder/Item.pm >@@ -24,6 +24,7 @@ use C4::ClassSource qw( GetClassSources ); > > use Koha::Biblios; > use Koha::DateUtils qw( dt_from_string ); >+use Koha::I18N; > use Koha::Libraries; > > =head1 NAME >@@ -208,16 +209,16 @@ sub generate_subfield_form { > push @authorised_values, ""; > my $itemtypes; > if ($branch_limit) { >- $itemtypes = Koha::ItemTypes->search_with_localization( >+ $itemtypes = Koha::ItemTypes->search( > { branchcode => $branch_limit } ); > } > else { >- $itemtypes = Koha::ItemTypes->search_with_localization; >+ $itemtypes = Koha::ItemTypes->search; > } > while ( my $itemtype = $itemtypes->next ) { > push @authorised_values, $itemtype->itemtype; > $authorised_lib{ $itemtype->itemtype } = >- $itemtype->translated_description; >+ db_t('itemtype', $itemtype->translation_key); > } > > if (!$value && $biblionumber) { >-- >2.25.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