Bugzilla – Attachment 71497 Details for
Bug 20185
Some scripts don't pass perl -wc
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 20185: Remove warnings from stats.print.pl
Bug-20185-Remove-warnings-from-statsprintpl.patch (text/plain), 1.19 KB, created by
Jonathan Druart
on 2018-02-12 18:39:30 UTC
(
hide
)
Description:
Bug 20185: Remove warnings from stats.print.pl
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2018-02-12 18:39:30 UTC
Size:
1.19 KB
patch
obsolete
>From 49ab86ceba98322ed95d79a1823697aefa5e4934 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Mon, 12 Feb 2018 15:37:18 -0300 >Subject: [PATCH] Bug 20185: Remove warnings from stats.print.pl > >This needs a full rewrite! >--- > reports/stats.print.pl | 10 +++++----- > 1 file changed, 5 insertions(+), 5 deletions(-) > >diff --git a/reports/stats.print.pl b/reports/stats.print.pl >index 5763969609..0f03ac1c42 100755 >--- a/reports/stats.print.pl >+++ b/reports/stats.print.pl >@@ -61,8 +61,8 @@ if ($time2 ne ''){ > $date2=ParseDate($time2); > } > >-my $date=UnixDate($date,'%Y-%m-%d'); >-my $date2=UnixDate($date2,'%Y-%m-%d'); >+$date=UnixDate($date,'%Y-%m-%d'); >+$date2=UnixDate($date2,'%Y-%m-%d'); > > #warn "MASON: DATE: $date, $date2"; > >@@ -72,7 +72,7 @@ my @payments=TotalPaid($date,$date2); > my $count=@payments; > # print "MASON: number of payments=$count\n"; > >-my $i=0; >+my $i = 0; > my $totalcharges=0; > my $totalcredits=0; > my $totalpaid=0; >@@ -125,8 +125,8 @@ while ($i<$count ){ > #get credits and append to the bottom of payments > my @credits=getcredits($date,$date2); > >-my $count=@credits; >-my $i=0; >+$count=@credits; >+$i=0; > > while ($i<$count ){ > >-- >2.11.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 20185
:
71484
|
71497
|
71561
|
71562
|
71708
|
71709