Bugzilla – Attachment 182791 Details for
Bug 40003
Warning generated when creating a new bib record
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 40003: Remove warning from log when creating a new bib record
Bug-40003-Remove-warning-from-log-when-creating-a-.patch (text/plain), 1.21 KB, created by
Jonathan Druart
on 2025-05-27 08:41:50 UTC
(
hide
)
Description:
Bug 40003: Remove warning from log when creating a new bib record
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2025-05-27 08:41:50 UTC
Size:
1.21 KB
patch
obsolete
>From 4a6ac217b31d1650dfa96ecca8d27dc23114e2ee Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 27 May 2025 10:40:33 +0200 >Subject: [PATCH] Bug 40003: Remove warning from log when creating a new bib > record > >Test plan: >Hit cataloguing/addbiblio.pl?frameworkcode=FA > >Without this patch you get warnings in the Koha log file: >Use of uninitialized value in string eq at /kohadevbox/koha/cataloguing/addbiblio.pl line 572. >Use of uninitialized value in substitution (s///) at /kohadevbox/koha/Koha/UI/Form/Builder/Biblio.pm line 55. > >with this patch applied: no warning >--- > Koha/UI/Form/Builder/Biblio.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/Koha/UI/Form/Builder/Biblio.pm b/Koha/UI/Form/Builder/Biblio.pm >index 3f6cd56769d..ad6ae993585 100644 >--- a/Koha/UI/Form/Builder/Biblio.pm >+++ b/Koha/UI/Form/Builder/Biblio.pm >@@ -51,7 +51,7 @@ sub new { > > my $self = {}; > >- if ( exists $params->{biblionumber} ) { >+ if ( defined $params->{biblionumber} ) { > $self->{biblionumber} = $params->{biblionumber} =~ s/\D//gr; > > # just in case biblionumber obtained from CGI and passed directly here contains weird characters like spaces >-- >2.34.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 40003
:
182791
|
182792
|
182794
|
182795