Bugzilla – Attachment 3829 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]
Patch
0001-Bug-6137-fix-a-Circulation-bug.-userenv-null.patch (text/plain), 868 bytes, created by
Julian Maurice
on 2011-04-08 09:26:31 UTC
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
Julian Maurice
Created:
2011-04-08 09:26:31 UTC
Size:
868 bytes
patch
obsolete
>From fa4c605122ca9e67f626bbbabc1c55af30416201 Mon Sep 17 00:00:00 2001 >From: biblibre <dev_patches@biblibre.com> >Date: Tue, 8 Mar 2011 10:28:38 +0100 >Subject: [PATCH] Bug 6137: fix a Circulation bug. userenv null > >--- > C4/Circulation.pm | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > >diff --git a/C4/Circulation.pm b/C4/Circulation.pm >index b977524..3713e49 100644 >--- a/C4/Circulation.pm >+++ b/C4/Circulation.pm >@@ -1923,7 +1923,7 @@ sub _GetCircControlBranch { > my $circcontrol = C4::Context->preference('CircControl'); > my $branch; > >- if ($circcontrol eq 'PickupLibrary') { >+ 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}; >-- >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