Bugzilla – Attachment 172804 Details for
Bug 38136
Refactor database translations (alternative)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 38136: Fix call to search_with_localization with branchcode param
Bug-38136-Fix-call-to-searchwithlocalization-with-.patch (text/plain), 1.43 KB, created by
Julian Maurice
on 2024-10-16 08:27:35 UTC
(
hide
)
Description:
Bug 38136: Fix call to search_with_localization with branchcode param
Filename:
MIME Type:
Creator:
Julian Maurice
Created:
2024-10-16 08:27:35 UTC
Size:
1.43 KB
patch
obsolete
>From 579fb8cf3c5a321b3821cbe0ef84612b35b355dd Mon Sep 17 00:00:00 2001 >From: Julian Maurice <julian.maurice@biblibre.com> >Date: Wed, 16 Oct 2024 10:24:52 +0200 >Subject: [PATCH] Bug 38136: Fix call to search_with_localization with > branchcode param > >It was the only place where this parameter was used >--- > Koha/UI/Form/Builder/Item.pm | 9 +++------ > 1 file changed, 3 insertions(+), 6 deletions(-) > >diff --git a/Koha/UI/Form/Builder/Item.pm b/Koha/UI/Form/Builder/Item.pm >index 2ace11b403..9176155899 100644 >--- a/Koha/UI/Form/Builder/Item.pm >+++ b/Koha/UI/Form/Builder/Item.pm >@@ -209,14 +209,11 @@ sub generate_subfield_form { > } > elsif ( $subfield->{authorised_value} eq "itemtypes" ) { > push @authorised_values, ""; >- my $itemtypes; >+ my $itemtypes = Koha::ItemTypes->new; > if ($branch_limit) { >- $itemtypes = Koha::ItemTypes->search_with_localization( >- { branchcode => $branch_limit } ); >- } >- else { >- $itemtypes = Koha::ItemTypes->search_with_localization; >+ $itemtypes = $itemtypes->search_with_library_limits({}, {}, $branch_limit); > } >+ $itemtypes = $itemtypes->order_by_translated_description; > while ( my $itemtype = $itemtypes->next ) { > push @authorised_values, $itemtype->itemtype; > $authorised_lib{ $itemtype->itemtype } = >-- >2.39.2
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 38136
:
172585
| 172804 |
173195
|
173196
|
173197
|
173198
|
174578
|
174579
|
174580
|
174581
|
174598
|
174599