From d2de3d34de4d2e49e53a1ecd9e73a78828659f30 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=utf8 Content-Transfer-Encoding: 8bit Sponsored-by: BULAC - http://www.bulac.fr/ Signed-off-by: Séverine QUEUNE Signed-off-by: Katrin Fischer Signed-off-by: Martin Renvoize --- .../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 468fab589a..be50156aa8 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt @@ -664,13 +664,25 @@ -
+
+
+
+ Select manager + + + +
+
+
+ +
+
[% ELSE %] @@ -844,6 +856,36 @@ [% MACRO jsinclude BLOCK %] [% INCLUDE 'calendar.inc' %] + + + [% IF ( op == 'show' || op == 'else' ) %] [% END %] diff --git a/suggestion/suggestion.pl b/suggestion/suggestion.pl index c93aeade48..7e8e2b2d0c 100755 --- a/suggestion/suggestion.pl +++ b/suggestion/suggestion.pl @@ -261,6 +261,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.39.5