Bugzilla – Attachment 71399 Details for
Bug 20157
Use group 'features' to decide which groups to use for group searching functionality
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 20157: Do not display OPAC groups on the staff interface
Bug-20157-Do-not-display-OPAC-groups-on-the-staff-.patch (text/plain), 1.67 KB, created by
Jonathan Druart
on 2018-02-09 20:08:06 UTC
(
hide
)
Description:
Bug 20157: Do not display OPAC groups on the staff interface
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2018-02-09 20:08:06 UTC
Size:
1.67 KB
patch
obsolete
>From cef5e7d337aa854539d361aafc918bfc50a69f25 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Fri, 9 Feb 2018 10:49:56 -0300 >Subject: [PATCH] Bug 20157: Do not display OPAC groups on the staff interface > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > C4/Auth.pm | 2 +- > catalogue/search.pl | 5 +---- > 2 files changed, 2 insertions(+), 5 deletions(-) > >diff --git a/C4/Auth.pm b/C4/Auth.pm >index 430c287efc..9942593538 100644 >--- a/C4/Auth.pm >+++ b/C4/Auth.pm >@@ -513,7 +513,7 @@ sub get_template_and_user { > $opac_name = C4::Context->userenv->{'branch'}; > } > >- my @search_groups = Koha::Library::Groups->get_search_groups(); >+ my @search_groups = Koha::Library::Groups->get_search_groups({ interface => 'opac' }); > $template->param( > OpacAdditionalStylesheet => C4::Context->preference("OpacAdditionalStylesheet"), > AnonSuggestions => "" . C4::Context->preference("AnonSuggestions"), >diff --git a/catalogue/search.pl b/catalogue/search.pl >index 26b7ef1f38..79ba83fd08 100755 >--- a/catalogue/search.pl >+++ b/catalogue/search.pl >@@ -209,11 +209,8 @@ if($cgi->cookie("intranet_bib_list")){ > @cart_list = split(/\//, $cart_list); > } > >-my @search_groups_opac = >- Koha::Library::Groups->get_search_groups( { interface => 'opac' } ); >-my @search_groups_staff = >+my @search_groups = > Koha::Library::Groups->get_search_groups( { interface => 'staff' } ); >-my @search_groups = ( @search_groups_opac, @search_groups_staff ); > @search_groups = sort { $a->title cmp $b->title } @search_groups; > > $template->param( >-- >2.11.0
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 20157
:
71320
|
71321
|
71323
|
71324
|
71382
|
71383
|
71385
|
71387
|
71395
|
71396
|
71397
|
71398
| 71399 |
71400