##// END OF EJS Templates
Fixed: SQL error on roadmap and changelog if there is no tracker to display....
Jean-Philippe Lang -
r633:f94be4f8ab84
parent child
Show More
@@ -24,7 +24,8
24 24 <% issues = version.fixed_issues.find(:all,
25 25 :include => [:status, :tracker],
26 26 :conditions => ["#{IssueStatus.table_name}.is_closed=? AND #{Issue.table_name}.tracker_id in (#{@selected_tracker_ids.join(',')})", true],
27 :order => "#{Tracker.table_name}.position")
27 :order => "#{Tracker.table_name}.position") unless @selected_tracker_ids.empty?
28 issues ||= []
28 29 %>
29 30 <% if !issues.empty? %>
30 31 <ul>
@@ -27,7 +27,8
27 27 <% issues = version.fixed_issues.find(:all,
28 28 :include => [:status, :tracker],
29 29 :conditions => ["tracker_id in (#{@selected_tracker_ids.join(',')})"],
30 :order => "#{Tracker.table_name}.position")
30 :order => "#{Tracker.table_name}.position") unless @selected_tracker_ids.empty?
31 issues ||= []
31 32
32 33 total = issues.size
33 34 complete = issues.inject(0) {|c,i| i.status.is_closed? ? c + 1 : c }
General Comments 0
You need to be logged in to leave comments. Login now