Bugzilla – Attachment 8723 Details for
Bug 7851
circ/circulation.pl plack scoping
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 7851 - circ/circulation.pl plack scoping
Bug-7851---circcirculationpl-plack-scoping.patch (text/plain), 2.14 KB, created by
Dobrica Pavlinusic
on 2012-03-30 17:06:51 UTC
(
hide
)
Description:
Bug 7851 - circ/circulation.pl plack scoping
Filename:
MIME Type:
Creator:
Dobrica Pavlinusic
Created:
2012-03-30 17:06:51 UTC
Size:
2.14 KB
patch
obsolete
>From 9956c3a90e6db954f3aa0af350c9281a60cb3072 Mon Sep 17 00:00:00 2001 >From: Dobrica Pavlinusic <dpavlin@rot13.org> >Date: Fri, 30 Mar 2012 18:58:53 +0200 >Subject: [PATCH] Bug 7851 - circ/circulation.pl plack scoping > >Errors: > >Variable "$totalprice" is not available at /srv/koha/circ/circulation.pl line 448. >Variable "%renew_failed" is not available at /srv/koha/circ/circulation.pl line 456. >Variable "$todaysdate" is not available at /srv/koha/circ/circulation.pl line 458. >Variable "@todaysissues" is not available at /srv/koha/circ/circulation.pl line 459. >Variable "@relissues" is not available at /srv/koha/circ/circulation.pl line 459. >Variable "@previousissues" is not available at /srv/koha/circ/circulation.pl line 461. >Variable "@relprevissues" is not available at /srv/koha/circ/circulation.pl line 461. > >Test scenario: >1. go to circulation page >2. verify errors in console output of plack >3. apply patch >4. reload and verify that errors are gone >--- > circ/circulation.pl | 14 +++++++------- > 1 files changed, 7 insertions(+), 7 deletions(-) > >diff --git a/circ/circulation.pl b/circ/circulation.pl >index 469209c..2c93547 100755 >--- a/circ/circulation.pl >+++ b/circ/circulation.pl >@@ -93,7 +93,7 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user ( > my $branches = GetBranches(); > > my @failedrenews = $query->param('failedrenew'); # expected to be itemnumbers >-my %renew_failed; >+our %renew_failed; > for (@failedrenews) { $renew_failed{$_} = 1; } > > my $findborrower = $query->param('findborrower'); >@@ -156,7 +156,7 @@ if($duedatespec_allow){ > } > } > >-my $todaysdate = C4::Dates->new->output('iso'); >+our $todaysdate = C4::Dates->new->output('iso'); > > # check and see if we should print > if ( $barcode eq '' && $print eq 'maybe' ) { >@@ -413,13 +413,13 @@ if ($borrowernumber) { > # make the issued books table. > my $todaysissues = ''; > my $previssues = ''; >-my @todaysissues; >-my @previousissues; >-my @relissues; >-my @relprevissues; >+our @todaysissues; >+our @previousissues; >+our @relissues; >+our @relprevissues; > my $displayrelissues; > >-my $totalprice = 0; >+our $totalprice = 0; > > sub build_issue_data { > my $issueslist = shift; >-- >1.7.2.5
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 7851
:
8723
|
8766