Bugzilla – Attachment 98796 Details for
Bug 24361
Fix warnings (or failing tests) from bug 24217
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24361: Silent Items/GetItemsForInventory.t
Bug-24361-Silent-ItemsGetItemsForInventoryt.patch (text/plain), 1.05 KB, created by
Jonathan Druart
on 2020-02-13 09:31:19 UTC
(
hide
)
Description:
Bug 24361: Silent Items/GetItemsForInventory.t
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2020-02-13 09:31:19 UTC
Size:
1.05 KB
patch
obsolete
>From eedb57781384df085c6c01b2a50977c1908fae94 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 13 Feb 2020 10:29:56 +0100 >Subject: [PATCH] Bug 24361: Silent Items/GetItemsForInventory.t > >It was displaying undreds of: >Use of uninitialized value in concatenation (.) or string at >/kohadevbox/koha/C4/Items.pm line 862. >--- > C4/Items.pm | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) > >diff --git a/C4/Items.pm b/C4/Items.pm >index f832456821..b31fe1f5a6 100644 >--- a/C4/Items.pm >+++ b/C4/Items.pm >@@ -859,7 +859,11 @@ sub GetItemsForInventory { > > # Auth values > foreach (keys %$row) { >- if (defined($avmapping->{"items.$_,".$row->{'frameworkcode'}.",".$row->{$_}})) { >+ if ( >+ defined( >+ $avmapping->{ "items.$_," . $row->{'frameworkcode'} . "," . ( $row->{$_} // q{} ) } >+ ) >+ ) { > $row->{$_} = $avmapping->{"items.$_,".$row->{'frameworkcode'}.",".$row->{$_}}; > } > } >-- >2.11.0
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 24361
:
96873
|
96892
|
96969
|
97315
|
97991
| 98796