Bug 16809: Follow-up for scalarizing biblionumber
Still resolves another multi_param warning. Test plan: Look at your logs before and after this patch when saving a biblio record (you may have to start plack again). If your biblionumber is mapped to 999c, you should no longer have a warn about line 2563 (disclaimer: line numbers are subject to change). Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
This commit is contained in:
parent
28ad0ab513
commit
377feb9cdf
|
|
@ -2558,9 +2558,9 @@ sub TransformHtmlToMarc {
|
|||
# if we are on biblionumber, store it in the MARC::Record (it may not be in the edited fields)
|
||||
if ( $param eq 'biblionumber' ) {
|
||||
if ( $biblionumbertagfield < 10 ) {
|
||||
$newfield = MARC::Field->new( $biblionumbertagfield, $cgi->param($param), );
|
||||
$newfield = MARC::Field->new( $biblionumbertagfield, scalar $cgi->param($param), );
|
||||
} else {
|
||||
$newfield = MARC::Field->new( $biblionumbertagfield, '', '', "$biblionumbertagsubfield" => $cgi->param($param), );
|
||||
$newfield = MARC::Field->new( $biblionumbertagfield, '', '', "$biblionumbertagsubfield" => scalar $cgi->param($param), );
|
||||
}
|
||||
push @fields, $newfield if ($newfield);
|
||||
} elsif ( $param =~ /^tag_(\d*)_indicator1_/ ) { # new field start when having 'input name="..._indicator1_..."
|
||||
|
|
|
|||
Loading…
Reference in New Issue