Skip to content

Commit

Permalink
fixed issue on roadmap.
Browse files Browse the repository at this point in the history
  • Loading branch information
hron committed Jul 17, 2009
1 parent 1d44c04 commit 6abdd55
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions app/views/projects/roadmap.rhtml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@
:conditions => ["tracker_id in (#{@selected_tracker_ids.join(',')})"],
:order => "#{Tracker.table_name}.position, #{Issue.table_name}.id") unless @selected_tracker_ids.empty?

issues = Issue.find_with_parents( issues.collect { |i| i.id })
issues ||= []
issues.each do |i|
issues += i.ancestors if i.child?
end
issues.uniq!
%>
<% if issues.size > 0 %>
<fieldset class="related-issues"><legend><%= l(:label_related_issues) %></legend>
Expand Down
2 changes: 1 addition & 1 deletion lib/redmine_subtasks/redmine_ext/versions_helper_patch.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def self.included(base) # :nodoc:

module InstanceMethods

def render_list_of_related_issues( issues, version, current_level = 1)
def render_list_of_related_issues( issues, version, current_level = 0)
issues_on_current_level = issues.select { |i| i.level == current_level }
issues -= issues_on_current_level
content_tag( 'ul') do
Expand Down

0 comments on commit 6abdd55

Please sign in to comment.