From c92107b83e23dcf4801ce64c4814f2b1e7ed8a4b 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 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sponsored-by: BULAC - http://www.bulac.fr/ Signed-off-by: Séverine QUEUNE --- .../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 d3acf68e72..8bf80a1d51 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