Bugzilla – Attachment 19906 Details for
Bug 9394
Use reserve_id where possible
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 9394: (follow-up) silence spurious warns
Bug-9394-follow-up-silence-spurious-warns.patch (text/plain), 1.87 KB, created by
Chris Cormack
on 2013-07-24 04:51:20 UTC
(
hide
)
Description:
Bug 9394: (follow-up) silence spurious warns
Filename:
MIME Type:
Creator:
Chris Cormack
Created:
2013-07-24 04:51:20 UTC
Size:
1.87 KB
patch
obsolete
>From 0c24920da8333eb4bc483cb2b35fc8325bc86f78 Mon Sep 17 00:00:00 2001 >From: Galen Charlton <gmc@esilibrary.com> >Date: Tue, 9 Jul 2013 14:30:14 +0000 >Subject: [PATCH] Bug 9394: (follow-up) silence spurious warns > >One just needed parentheses, but the one on line 219 reflects >a slightly deeper problem -- it's running patron checks when >a patron hasn't actually been supplied. > >To test: > >[1] From the staff interface, bring up a biblio that has no > holds on it, then go to the holds tab. >[2] Verify that the Apache log has no new warnings containing: > >request.pl: Use of uninitialized value in string eq at /home/gmc/koha/reserve/request.pl line 219 > >or > >request.pl: Use of uninitialized value in string eq at /home/gmc/koha/reserve/request.pl line 488 > >Signed-off-by: Galen Charlton <gmc@esilibrary.com> >Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz> >--- > reserve/request.pl | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/reserve/request.pl b/reserve/request.pl >index d303e68..11741e2 100755 >--- a/reserve/request.pl >+++ b/reserve/request.pl >@@ -216,7 +216,7 @@ foreach my $biblionumber (@biblionumbers) { > $count--; > } > >- if ( defined $borrowerinfo && ($borrowerinfo->{borrowernumber} eq $res->{borrowernumber}) ) { >+ if ( defined $borrowerinfo && defined($borrowerinfo->{borrowernumber}) && ($borrowerinfo->{borrowernumber} eq $res->{borrowernumber}) ) { > $holds_count++; > } > } >@@ -485,7 +485,7 @@ foreach my $biblionumber (@biblionumbers) { > ); > } > >- if ( defined $res->{'found'} && $res->{'found'} eq 'W' || $res->{'found'} eq 'T' ) { >+ if ( defined $res->{'found'} && ($res->{'found'} eq 'W' || $res->{'found'} eq 'T' )) { > my $item = $res->{'itemnumber'}; > $item = GetBiblioFromItemNumber($item,undef); > $reserve{'wait'}= 1; >-- >1.8.3.1
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 9394
:
14601
|
14860
|
14863
|
15730
|
15733
|
16676
|
17447
|
18216
|
18318
|
18465
|
18466
|
18492
|
18621
|
19893
|
19894
|
19895
|
19896
|
19897
|
19898
|
19899
|
19902
|
19904
|
19905
| 19906 |
19907
|
19908
|
19909