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 Signed-off-by: Owen Leonard <oleonard@myacpl.org> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> (cherry picked from commit0ba11f98f9) Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de> (cherry picked from commitfd6552957e) Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
parent
2e206ae962
commit
e153b9654d
|
|
@ -52,7 +52,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
|
||||
|
|
|
|||
Loading…
Reference in New Issue