Bugzilla – Attachment 71382 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: Save the features that have been checked
Bug-20157-Save-the-features-that-have-been-checked.patch (text/plain), 2.85 KB, created by
Jonathan Druart
on 2018-02-09 13:00:59 UTC
(
hide
)
Description:
Bug 20157: Save the features that have been checked
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2018-02-09 13:00:59 UTC
Size:
2.85 KB
patch
obsolete
>From 65b06687a38d4d364c6a940c5d67d023254731ea Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Fri, 9 Feb 2018 10:00:06 -0300 >Subject: [PATCH] Bug 20157: Save the features that have been checked > >Previous patch forgot to modify the controller script to save the >changes. >--- > admin/library_groups.pl | 16 ++++++++++++---- > 1 file changed, 12 insertions(+), 4 deletions(-) > >diff --git a/admin/library_groups.pl b/admin/library_groups.pl >index c84e6d2d9b..a76f45e615 100755 >--- a/admin/library_groups.pl >+++ b/admin/library_groups.pl >@@ -46,8 +46,10 @@ if ( $action eq 'add' ) { > my $parent_id = $cgi->param('parent_id') || undef; > my $title = $cgi->param('title') || undef; > my $description = $cgi->param('description') || undef; >- my $ft_hide_patron_info = $cgi->param('ft_hide_patron_info') || 0; > my $branchcode = $cgi->param('branchcode') || undef; >+ my $ft_hide_patron_info = $cgi->param('ft_hide_patron_info') || 0; >+ my $ft_search_groups_opac = $cgi->param('ft_search_groups_opac') || 0; >+ my $ft_search_groups_staff = $cgi->param('ft_search_groups_staff') || 0; > > if ( !$branchcode && Koha::Library::Groups->search( { title => $title } )->count() ) { > $template->param( error_duplicate_title => $title ); >@@ -58,7 +60,9 @@ if ( $action eq 'add' ) { > parent_id => $parent_id, > title => $title, > description => $description, >- ft_hide_patron_info => $ft_hide_patron_info, >+ ft_hide_patron_info => $ft_hide_patron_info, >+ ft_search_groups_opac => $ft_search_groups_opac, >+ ft_search_groups_staff => $ft_search_groups_staff, > branchcode => $branchcode, > } > )->store(); >@@ -70,7 +74,9 @@ elsif ( $action eq 'edit' ) { > my $id = $cgi->param('id') || undef; > my $title = $cgi->param('title') || undef; > my $description = $cgi->param('description') || undef; >- my $ft_hide_patron_info = $cgi->param('ft_hide_patron_info') || 0; >+ my $ft_hide_patron_info = $cgi->param('ft_hide_patron_info') || 0; >+ my $ft_search_groups_opac = $cgi->param('ft_search_groups_opac') || 0; >+ my $ft_search_groups_staff = $cgi->param('ft_search_groups_staff') || 0; > > if ($id) { > my $group = Koha::Library::Groups->find($id); >@@ -79,7 +85,9 @@ elsif ( $action eq 'edit' ) { > { > title => $title, > description => $description, >- ft_hide_patron_info => $ft_hide_patron_info, >+ ft_hide_patron_info => $ft_hide_patron_info, >+ ft_search_groups_opac => $ft_search_groups_opac, >+ ft_search_groups_staff => $ft_search_groups_staff, > } > )->store(); > >-- >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