From e28b5e1f08adced5a7429743b376841c57672ccd Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 5 Apr 2009 12:09:59 +0000 Subject: [PATCH] Merged r2643 from trunk. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/0.8-stable@2653 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/helpers/timelog_helper.rb | 6 +++++- doc/CHANGELOG | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/app/helpers/timelog_helper.rb b/app/helpers/timelog_helper.rb index f068b4db8..88a4cd85e 100644 --- a/app/helpers/timelog_helper.rb +++ b/app/helpers/timelog_helper.rb @@ -35,7 +35,11 @@ module TimelogHelper end def select_hours(data, criteria, value) - data.select {|row| row[criteria] == value} + if value.to_s.empty? + data.select {|row| row[criteria].blank? } + else + data.select {|row| row[criteria] == value} + end end def sum_hours(data) diff --git a/doc/CHANGELOG b/doc/CHANGELOG index 5ffacce0c..16e1bab88 100644 --- a/doc/CHANGELOG +++ b/doc/CHANGELOG @@ -20,6 +20,7 @@ http://www.redmine.org/ * Fixed: News summary field content is not searchable * Fixed: Journal#save has a wrong signature * Fixed: Email footer signature convention +* Fixed: Timelog report do not show time for non-versioned issues == 2009-03-07 v0.8.2