From b99d4189b7b88dd872b55e299ad8a0674e8d1592 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Mon, 8 Mar 2010 20:17:09 +0000 Subject: [PATCH] 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 --- app/controllers/projects_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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