Bugzilla – Attachment 17229 Details for
Bug 9980
Anonymous searches in the OPAC entirely broken
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 9980 : Fix for anonymous searches
Bug-9980--Fix-for-anonymous-searches.patch (text/plain), 1.17 KB, created by
Chris Cormack
on 2013-04-07 07:58:21 UTC
(
hide
)
Description:
Bug 9980 : Fix for anonymous searches
Filename:
MIME Type:
Creator:
Chris Cormack
Created:
2013-04-07 07:58:21 UTC
Size:
1.17 KB
patch
obsolete
>From 2e195409ca80a150eb0d522e41c82b64e55fcf45 Mon Sep 17 00:00:00 2001 >From: Chris Cormack <chris@bigballofwax.co.nz> >Date: Sun, 7 Apr 2013 19:55:37 +1200 >Subject: [PATCH] Bug 9980 : Fix for anonymous searches > >To test >Search in the OPAC both logged and logged out >--- > opac/opac-search.pl | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) > >diff --git a/opac/opac-search.pl b/opac/opac-search.pl >index 3ca9d1d..677b7c2 100755 >--- a/opac/opac-search.pl >+++ b/opac/opac-search.pl >@@ -715,8 +715,10 @@ for (my $i=0;$i<@servers;$i++) { > $template->param(results_per_page => $results_per_page); > my $hide = C4::Context->preference('OpacHiddenItems'); > $hide = ($hide =~ m/\S/) if $hide; # Just in case it has some spaces/new lines >- >- my $branch = C4::Context->userenv->{branch}; >+ my $branch = ''; >+ if (C4::Context->userenv){ >+ $branch = C4::Context->userenv->{branch}; >+ } > if ( C4::Context->preference('HighlightOwnItemsOnOPAC') ) { > if ( > ( ( C4::Context->preference('HighlightOwnItemsOnOPACWhich') eq 'PatronBranch' ) && $branch ) >-- >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 9980
:
17229
|
17250
|
17251
|
17252