Fixed: NoMethodError error on roadmap if no trackers are selected and a shared version is available (#5006).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3555 e93f8b46-1217-0410-a6f0-8f06a7374b81
pull/351/head
Jean-Philippe Lang 15 years ago
parent c07696b578
commit b99d4189b7
  1. 2
      app/controllers/projects_controller.rb

@ -304,7 +304,7 @@ class ProjectsController < ApplicationController
@issues_by_version[version] = issues @issues_by_version[version] = issues
end end
end end
@versions.reject! {|version| !project_ids.include?(version.project_id) && @issues_by_version[version].empty?} @versions.reject! {|version| !project_ids.include?(version.project_id) && @issues_by_version[version].blank?}
end end
def activity def activity

Loading…
Cancel
Save