Bugzilla – Attachment 51635 Details for
Bug 16499
circulation.pl logs warnings about Use of uninitialized value
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 16499: Remove "Use of uninitialized value" warnings in circulation.pl
Bug-16499-Remove-Use-of-uninitialized-value-warnin.patch (text/plain), 1.91 KB, created by
Marcel de Rooy
on 2016-05-20 06:30:08 UTC
(
hide
)
Description:
Bug 16499: Remove "Use of uninitialized value" warnings in circulation.pl
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2016-05-20 06:30:08 UTC
Size:
1.91 KB
patch
obsolete
>From 02c5657d70563483a0573f1a19df6fbbb76e073b Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 11 May 2016 15:05:59 +0100 >Subject: [PATCH] Bug 16499: Remove "Use of uninitialized value" warnings in > circulation.pl >Content-Type: text/plain; charset=utf-8 > >If you search for a patron in the circulation module, you get: > >Use of uninitialized value $barcode in string eq at >/home/koha/src/circ/circulation.pl line 84. >Use of uninitialized value $restoreduedatespec in string eq at >/home/koha/src/circ/circulation.pl line 170. > >Test plan: >- Search for a patron and confirm the warnings are not displayed anymore >- Make sure this patch does not introduce regression on bug 14015 > >Signed-off-by: Owen Leonard <oleonard@myacpl.org> >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > circ/circulation.pl | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/circ/circulation.pl b/circ/circulation.pl >index 66b3dcf..136b7bf 100755 >--- a/circ/circulation.pl >+++ b/circ/circulation.pl >@@ -81,7 +81,7 @@ if (!C4::Context->userenv){ > my $barcodes = []; > my $barcode = $query->param('barcode'); > # Barcode given by user could be '0' >-if ( $barcode || $barcode eq '0' ) { >+if ( $barcode or defined $barcode and $barcode eq '0' ) { > $barcodes = [ $barcode ]; > } else { > my $filefh = $query->upload('uploadfile'); >@@ -167,7 +167,7 @@ my $duedatespec = $query->param('duedatespec') || $session->param('stickydu > $duedatespec = eval { output_pref( { dt => dt_from_string( $duedatespec ), dateformat => 'iso' }); } > if ( $duedatespec ); > my $restoreduedatespec = $query->param('restoreduedatespec') || $session->param('stickyduedate') || $duedatespec; >-if ($restoreduedatespec eq "highholds_empty") { >+if ($restoreduedatespec and $restoreduedatespec eq "highholds_empty") { > undef $restoreduedatespec; > } > my $issueconfirmed = $query->param('issueconfirmed'); >-- >1.7.10.4
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 16499
:
51436
|
51440
|
51635
|
51721
|
51722