Bugzilla – Attachment 46545 Details for
Bug 6657
Making 999 visible in framework duplicates 999 entry and affects index
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 6657: counter-patch
Bug-6657-counter-patch.patch (text/plain), 1.40 KB, created by
Frédéric Demians
on 2016-01-12 15:58:28 UTC
(
hide
)
Description:
Bug 6657: counter-patch
Filename:
MIME Type:
Creator:
Frédéric Demians
Created:
2016-01-12 15:58:28 UTC
Size:
1.40 KB
patch
obsolete
>From 2d2badb97fbfe9a577fa83460b38d5becb7b7f59 Mon Sep 17 00:00:00 2001 >From: Julian Maurice <julian.maurice@biblibre.com> >Date: Tue, 12 Jan 2016 16:49:15 +0100 >Subject: [PATCH] Bug 6657: counter-patch >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >Replace while by for > >Signed-off-by: Frédéric Demians <f.demians@tamil.fr> >--- > C4/Biblio.pm | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > >diff --git a/C4/Biblio.pm b/C4/Biblio.pm >index f08fc37..ef263e4 100644 >--- a/C4/Biblio.pm >+++ b/C4/Biblio.pm >@@ -2515,13 +2515,12 @@ sub TransformHtmlToMarc { > > # creating a new record > my $record = MARC::Record->new(); >- my $i = 0; > my @fields; > my ($biblionumbertagfield, $biblionumbertagsubfield) = (-1, -1); > ($biblionumbertagfield, $biblionumbertagsubfield) = > &GetMarcFromKohaField( "biblio.biblionumber", '' ) if $isbiblio; > #FIXME This code assumes that the CGI params will be in the same order as the fields in the template; this is no absolute guarantee! >- while ( $params[$i] ) { # browse all CGI params >+ for (my $i = 0; $params[$i]; $i++ ) { # browse all CGI params > my $param = $params[$i]; > my $newfield = 0; > >@@ -2585,7 +2584,6 @@ sub TransformHtmlToMarc { > } > push @fields, $newfield if ($newfield); > } >- $i++; > } > > $record->append_fields(@fields); >-- >2.7.0
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 6657
:
42667
|
44199
|
44869
|
46517
|
46536
|
46537
|
46538
|
46542
|
46543
|
46544
|
46545
|
46547
|
46568
|
46569