Bugzilla – Attachment 4132 Details for
Bug 6137
Fix a little bug when userenv is null
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Signed off patch
0001-Bug-6137-fix-a-Circulation-bug.-userenv-null.patch (text/plain), 1.00 KB, created by
Chris Cormack
on 2011-05-16 22:24:59 UTC
(
hide
)
Description:
Signed off patch
Filename:
MIME Type:
Creator:
Chris Cormack
Created:
2011-05-16 22:24:59 UTC
Size:
1.00 KB
patch
obsolete
>From 092e98df273c113d05e25732df0fb8441407125c Mon Sep 17 00:00:00 2001 >From: biblibre <dev_patches@biblibre.com> >Date: Tue, 8 Mar 2011 10:28:38 +0100 >Subject: [Signed Off] [PATCH] Bug 6137: fix a Circulation bug. userenv null > >Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz> >--- > C4/Circulation.pm | 4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) > >diff --git a/C4/Circulation.pm b/C4/Circulation.pm >index 9a2db4c..3713e49 100644 >--- a/C4/Circulation.pm >+++ b/C4/Circulation.pm >@@ -1923,8 +1923,8 @@ sub _GetCircControlBranch { > my $circcontrol = C4::Context->preference('CircControl'); > my $branch; > >- if ($circcontrol eq 'PickupLibrary') { >- $branch= C4::Context->userenv->{'branch'} if C4::Context->userenv; >+ if ($circcontrol eq 'PickupLibrary' and (C4::Context->userenv and C4::Context->userenv->{'branch'}) ) { >+ $branch= C4::Context->userenv->{'branch'}; > } elsif ($circcontrol eq 'PatronLibrary') { > $branch=$borrower->{branchcode}; > } else { >-- >1.7.4.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 6137
:
3829
| 4132 |
7354
|
7443
|
7617