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
users = principals.select {|p| p.is_a?(User)}
add_available_filter "status_id",
:type => :list_status, :values => IssueStatus.sorted.collect{|s| [s.name, s.id.to_s] }
:type => :list_status, :values => IssueStatus.joins(:workflows).
where(:workflows => {:tracker_id => trackers}).
uniq.to_a.sort.collect{|s| [s.name, s.id.to_s] }
if project.nil?
project_values = []
(4-4/5)