Bugzilla – Attachment 128253 Details for
Bug 29040
Uninitialized value warning in Languages.pm
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 29040: Remove warning from the itemtype edit view
Bug-29040-Remove-warning-from-the-itemtype-edit-vi.patch (text/plain), 1.58 KB, created by
David Nind
on 2021-12-05 17:23:19 UTC
(
hide
)
Description:
Bug 29040: Remove warning from the itemtype edit view
Filename:
MIME Type:
Creator:
David Nind
Created:
2021-12-05 17:23:19 UTC
Size:
1.58 KB
patch
obsolete
>From a3457d6de198536a3642c60ad69236e4df0ecf62 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Fri, 19 Nov 2021 14:54:58 +0100 >Subject: [PATCH] Bug 29040: Remove warning from the itemtype edit view > >Use of uninitialized value $interface in concatenation (.) or string at /kohadevbox/koha/C4/Languages.pm line 121. > >We are expecting "intranet" or "opac", here we sent undef which raises a >warning. >For no change in behaviour we can send "both" (or whatever different >than "intranet" and "opac"). > >Test plan: >Hit /cgi-bin/koha/admin/itemtypes.pl?op=add_form&itemtype=BK >Notice that the warning does no longer appear in the logs with the patch >applied. > >Signed-off-by: David Nind <david@davidnind.com> >--- > admin/itemtypes.pl | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/admin/itemtypes.pl b/admin/itemtypes.pl >index 8652c3de9f..975064af9a 100755 >--- a/admin/itemtypes.pl >+++ b/admin/itemtypes.pl >@@ -60,7 +60,7 @@ if ( $op eq 'add_form' ) { > my $parent_types = Koha::ItemTypes->search({parent_type=>undef,itemtype => {'!='=>$itemtype_code}}); > my $imagesets = C4::Koha::getImageSets( checked => ( $itemtype ? $itemtype->imageurl : undef ) ); > my $searchcategory = GetAuthorisedValues("ITEMTYPECAT"); >- my $translated_languages = C4::Languages::getTranslatedLanguages( undef , C4::Context->preference('template') ); >+ my $translated_languages = C4::Languages::getTranslatedLanguages( "both", C4::Context->preference('template') ); > $template->param( > itemtype => $itemtype, > parent_type => $parent_type, >-- >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 29040
:
124922
|
124942
|
127866
|
128253
|
128459