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};