]> source.dussan.org Git - redmine.git/commitdiff
Let the issue list be grouped by private flag.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 4 Apr 2017 17:19:55 +0000 (17:19 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 4 Apr 2017 17:19:55 +0000 (17:19 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@16476 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/issue_query.rb

index 94a47e3feb932cf0b0e5e0e31dc6276e3324e5d6..72a9728df1ef050678cd596c68533dbb02476aaa 100644 (file)
@@ -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$/, '')}