From 75a40acc39997a40aa8c692a58ec819630eb8f22 Mon Sep 17 00:00:00 2001 From: Jonathan Druart 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. Signed-off-by: Jonathan Druart --- 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.39.5