From 141020b4431557ab97f4caa4fb41c8bf383209c6 Mon Sep 17 00:00:00 2001 From: Carlos Proensa Date: Tue, 22 Aug 2017 00:45:53 +0200 Subject: [PATCH] On group action page, show only allowed projects On group action page, for "move" and "copy" actions, only allow the selection of destination projects where the action can be performed. Projects for which the user don't have report permission are now disabled in the dropdown selection. Fixes: #12444 --- bug_actiongroup_page.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bug_actiongroup_page.php b/bug_actiongroup_page.php index a6704b72ca..a5cf2baa46 100644 --- a/bug_actiongroup_page.php +++ b/bug_actiongroup_page.php @@ -294,7 +294,8 @@ switch( $f_action ) { case 'COPY': case 'MOVE': - print_project_option_list( null, false ); + print_project_option_list( null /* $p_project_id */, false /* $p_include_all_projects */, + null /* $p_filter_project_id */, false /* $p_trace */, true /* $p_can_report_only */ ); break; case 'ASSIGN': print_assign_to_option_list( 0, $t_project_id );