Project

General

Profile

Defect #5385 » 4385_issue_statuses_filter_fix_RM_3.1.1.diff

Olivier Houdas, 2015-10-09 12:08

View differences:

app/models/issue_query.rb Sun Sep 20 06:20:40 2015 +0000 → app/models/issue_query.rb Fri Oct 09 12:08:02 2015 +0200
156 156
    users = principals.select {|p| p.is_a?(User)}
157 157

  
158 158
    add_available_filter "status_id",
159
      :type => :list_status, :values => IssueStatus.sorted.collect{|s| [s.name, s.id.to_s] }
159
      :type => :list_status, :values => IssueStatus.joins(:workflows).
160
                                                    where(:workflows => {:tracker_id => trackers}).
161
                                                    uniq.to_a.sort.collect{|s| [s.name, s.id.to_s] }
160 162

  
161 163
    if project.nil?
162 164
      project_values = []
(4-4/5)