diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2010-03-08 20:17:09 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2010-03-08 20:17:09 +0000 |
commit | b99d4189b7b88dd872b55e299ad8a0674e8d1592 (patch) | |
tree | d465282955efe74abfd815f03192db77ee817a8d /app/controllers/projects_controller.rb | |
parent | c07696b578960701c388002612308dcd4db57ec8 (diff) | |
download | redmine-b99d4189b7b88dd872b55e299ad8a0674e8d1592.tar.gz redmine-b99d4189b7b88dd872b55e299ad8a0674e8d1592.zip |
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
Diffstat (limited to 'app/controllers/projects_controller.rb')
-rw-r--r-- | app/controllers/projects_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb index ea04927c7..2ac816829 100644 --- a/app/controllers/projects_controller.rb +++ b/app/controllers/projects_controller.rb @@ -304,7 +304,7 @@ class ProjectsController < ApplicationController @issues_by_version[version] = issues 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 def activity |