Bugzilla – Attachment 54650 Details for
Bug 16809
Silence CGI param warnings from C4::Biblio::TransformHtmlToMarc
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 16809: Follow-up for scalarizing biblionumber
Bug-16809-Follow-up-for-scalarizing-biblionumber.patch (text/plain), 1.74 KB, created by
Jonathan Druart
on 2016-08-19 15:47:23 UTC
(
hide
)
Description:
Bug 16809: Follow-up for scalarizing biblionumber
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2016-08-19 15:47:23 UTC
Size:
1.74 KB
patch
obsolete
>From 09944dac106c7cfb2bc4cd6e83c4abd3a9e39bf8 Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Wed, 17 Aug 2016 15:14:12 +0200 >Subject: [PATCH] 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> >--- > C4/Biblio.pm | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/C4/Biblio.pm b/C4/Biblio.pm >index 3c99638..3a34d79 100644 >--- a/C4/Biblio.pm >+++ b/C4/Biblio.pm >@@ -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_..." >-- >2.8.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 16809
:
52832
|
54535
|
54536
|
54649
| 54650