From 92d98ff4ebe7d901eb8014cda854b374642253ea Mon Sep 17 00:00:00 2001 From: Mark Tompsett Date: Mon, 26 Mar 2018 19:14:44 +0000 Subject: [PATCH] Bug 20477: Silence floody noise on fast cataloging TEST PLAN --------- See comment #0 to reproduce. apply this patch restart_all echo | sudo tee /var/log/koha/kohadev/place-error.log restart_all cat /var/log/koha/kohadev/plack-error.log -- just restart information log into staff client again, home -> circulation -> fast cataloging cat /var/log/koha/kohadev/plack-error.log -- just restart information run qa test tools --- cataloguing/addbiblio.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cataloguing/addbiblio.pl b/cataloguing/addbiblio.pl index 17557b4..77e31e0 100755 --- a/cataloguing/addbiblio.pl +++ b/cataloguing/addbiblio.pl @@ -290,7 +290,7 @@ sub create_input { # if there is no value provided but a default value in parameters, get it if ( $value eq '' ) { - $value = $tagslib->{$tag}->{$subfield}->{defaultvalue}; + $value = $tagslib->{$tag}->{$subfield}->{defaultvalue} // q{}; # get today date & replace <>, <>, <
> if provided in the default value my $today_dt = dt_from_string; @@ -694,7 +694,7 @@ my $biblionumber = $input->param('biblionumber'); # if biblionumber exists, it' my $parentbiblio = $input->param('parentbiblionumber'); my $breedingid = $input->param('breedingid'); my $z3950 = $input->param('z3950'); -my $op = $input->param('op'); +my $op = $input->param('op') // q{}; my $mode = $input->param('mode'); my $frameworkcode = $input->param('frameworkcode'); my $redirect = $input->param('redirect'); @@ -711,7 +711,7 @@ my $fa_duedatespec = $input->param('duedatespec'); my $userflags = 'edit_catalogue'; -my $changed_framework = $input->param('changed_framework'); +my $changed_framework = $input->param('changed_framework') // q{}; $frameworkcode = &GetFrameworkCode($biblionumber) if ( $biblionumber and not( defined $frameworkcode) and $op ne 'addbiblio' ); -- 2.1.4