Bugzilla – Attachment 2605 Details for
Bug 5205
tools/batchMod.pl does not compile without warnings
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed Patch
0001-Bug-5205-Fix-compile-time-warnings-in-tools-batchMod.patch (text/plain), 1.22 KB, created by
Colin Campbell
on 2010-09-08 13:31:19 UTC
(
hide
)
Description:
Proposed Patch
Filename:
MIME Type:
Creator:
Colin Campbell
Created:
2010-09-08 13:31:19 UTC
Size:
1.22 KB
patch
obsolete
>From 070efec0c99e8664645a84e6f8f85ea0dfe5c45a Mon Sep 17 00:00:00 2001 >From: Colin Campbell <colin.campbell@ptfs-europe.com> >Date: Wed, 8 Sep 2010 14:21:55 +0100 >Subject: [PATCH] Bug 5205 Fix compile time warnings in tools/batchMod.pl >Content-Type: text/plain; charset="utf-8" > >$dbh was declared twice >prototypes used in a subroutine that was not declared before use >--- > tools/batchMod.pl | 3 +-- > 1 files changed, 1 insertions(+), 2 deletions(-) > >diff --git a/tools/batchMod.pl b/tools/batchMod.pl >index f5138d1..5271d81 100755 >--- a/tools/batchMod.pl >+++ b/tools/batchMod.pl >@@ -82,7 +82,6 @@ my @not_deleted; # List of the itemnumbers that could not be deleted > > my %cookies = parse CGI::Cookie($cookie); > my $sessionID = $cookies{'CGISESSID'}->value; >-my $dbh = C4::Context->dbh; > > > #--- ---------------------------------------------------------------------------- >@@ -492,7 +491,7 @@ sub BuildItemsData{ > # Where subfield is not repeated > # And where we are sure that field should correspond > # And $tag>10 >-sub UpdateMarcWith($$){ >+sub UpdateMarcWith { > my ($marcfrom,$marcto)=@_; > #warn "FROM :",$marcfrom->as_formatted; > my ( $itemtag, $itemtagsubfield) = &GetMarcFromKohaField("items.itemnumber", ""); >-- >1.7.2.2 >
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 5205
: 2605