From: Jean-Philippe Lang Date: Tue, 4 Apr 2017 17:19:55 +0000 (+0000) Subject: Let the issue list be grouped by private flag. X-Git-Tag: 3.4.0~178 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=41cb7a3a55261c4497ea42510ab6753cac365409;p=redmine.git Let the issue list be grouped by private flag. git-svn-id: http://svn.redmine.org/redmine/trunk@16476 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/models/issue_query.rb b/app/models/issue_query.rb index 94a47e3fe..72a9728df 100644 --- a/app/models/issue_query.rb +++ b/app/models/issue_query.rb @@ -206,7 +206,7 @@ class IssueQuery < Query if User.current.allowed_to?(:set_issues_private, nil, :global => true) || User.current.allowed_to?(:set_own_issues_private, nil, :global => true) - @available_columns << QueryColumn.new(:is_private, :sortable => "#{Issue.table_name}.is_private") + @available_columns << QueryColumn.new(:is_private, :sortable => "#{Issue.table_name}.is_private", :groupable => true) end disabled_fields = Tracker.disabled_core_fields(trackers).map {|field| field.sub(/_id$/, '')}