Bugzilla – Attachment 24677 Details for
Bug 11587
IsSuperLibrarian generates warnings
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 11587 - IsSuperLibrarian generates warnings
Bug-11587---IsSuperLibrarian-generates-warnings.patch (text/plain), 1.04 KB, created by
Jonathan Druart
on 2014-01-24 12:05:34 UTC
(
hide
)
Description:
Bug 11587 - IsSuperLibrarian generates warnings
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2014-01-24 12:05:34 UTC
Size:
1.04 KB
patch
obsolete
>From 900904657e98c04a6122439370531c17d837b428 Mon Sep 17 00:00:00 2001 >From: Mark Tompsett <mtompset@hotmail.com> >Date: Tue, 21 Jan 2014 00:41:00 -0500 >Subject: [PATCH] Bug 11587 - IsSuperLibrarian generates warnings > >This corrects line 1250 of C4/Context.pm to be: > return ($userenv->{flags}//0) % 2; >And thus avoids an uninitialized value used in the modulus. > >TEST PLAN >--------- >1) Apply the first patch (to update t/Context.t) >2) prove -v t/Context.t >-- This should fail tests 7 and 8 >3) Apply this patch (to fix C4/Context.pm) >4) prove -v t/Context.t >-- All tests should succeed > >Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz> > >Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com> >--- > C4/Context.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/C4/Context.pm b/C4/Context.pm >index 3914420..8dc67f2 100644 >--- a/C4/Context.pm >+++ b/C4/Context.pm >@@ -1247,7 +1247,7 @@ sub IsSuperLibrarian { > return 1; > } > >- return $userenv->{flags} % 2; >+ return ($userenv->{flags}//0) % 2; > } > > 1; >-- >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 11587
:
24587
|
24588
|
24589
|
24666
|
24667
|
24676
| 24677 |
24678