From ec4e901406a21bea5966973e9824a9449d65af45 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 6 Nov 2019 19:41:36 +0100 Subject: [PATCH] Bug 23590: Batch update manager for suggestions --- .../prog/en/modules/suggestion/suggestion.tt | 75 ++++++++++++++-------- suggestion/suggestion.pl | 8 +++ 2 files changed, 58 insertions(+), 25 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt index d349072918..fbb490c48b 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt @@ -652,13 +652,25 @@ -
+
+
+
+ Select manager + + + +
+
+
+ +
+
[% ELSE %] @@ -832,6 +844,36 @@ [% MACRO jsinclude BLOCK %] [% INCLUDE 'calendar.inc' %] + + + [% IF ( op == 'show' || op == 'else' ) %] [% END %] diff --git a/suggestion/suggestion.pl b/suggestion/suggestion.pl index 50dfb4c324..bcb68766ed 100755 --- a/suggestion/suggestion.pl +++ b/suggestion/suggestion.pl @@ -262,6 +262,14 @@ elsif ( $op eq 'update_itemtype' ) { } redirect_with_params($input); } +elsif ( $op eq 'update_manager' ) { + my $managedby = $input->param('suggestion_managedby'); + foreach my $suggestionid (@editsuggestions) { + next unless $suggestionid; + &ModSuggestion({ suggestionid => $suggestionid, managedby => $managedby }); + } + redirect_with_params($input); +} elsif ( $op eq 'show' ) { $suggestion_ref=&GetSuggestion($$suggestion_ref{'suggestionid'}); my $budget = GetBudget $$suggestion_ref{budgetid}; -- 2.11.0