Bugzilla – Attachment 91495 Details for
Bug 23310
Noisy Koha::Biblio
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 23310: Reduce noise in Koha::Biblio
Bug-23310-Reduce-noise-in-KohaBiblio.patch (text/plain), 1.20 KB, created by
Mark Tompsett
on 2019-07-12 15:32:45 UTC
(
hide
)
Description:
Bug 23310: Reduce noise in Koha::Biblio
Filename:
MIME Type:
Creator:
Mark Tompsett
Created:
2019-07-12 15:32:45 UTC
Size:
1.20 KB
patch
obsolete
>From db7dc22e49a357d0a83b6c99b6ea4372c46a8b57 Mon Sep 17 00:00:00 2001 >From: Mark Tompsett <mtompset@hotmail.com> >Date: Fri, 12 Jul 2019 01:30:47 +0000 >Subject: [PATCH] Bug 23310: Reduce noise in Koha::Biblio > >The use of uninitialized value flooding plack-error >can get rather distracting and annoying. >By using "// q{}" after each of the subfield() calls >this eliminates the problem > >TEST PLAN >- run tests before, noise in plack-error log >- apply patch >- restart_all >- run tests again, no Koha/Biblio noise after the restart >- run qa test tools >--- > Koha/Biblio.pm | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > >diff --git a/Koha/Biblio.pm b/Koha/Biblio.pm >index f38a101e27..bba2b4008b 100644 >--- a/Koha/Biblio.pm >+++ b/Koha/Biblio.pm >@@ -579,7 +579,8 @@ sub get_coins { > push @authors, $au; > } > } >- $title = $record->subfield( '245', 'a' ) . $record->subfield( '245', 'b' ); >+ $title = $record->subfield( '245', 'a' ) // q{}; >+ $title = $title . $record->subfield( '245', 'b' ) // q{}; > if ($titletype eq 'a') { > $pubyear = $record->field('008') || ''; > $pubyear = substr($pubyear->data(), 7, 4) if $pubyear; >-- >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 23310
:
91495
|
91496
|
91497
|
91544
|
91549