diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-03-30 20:09:57 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-03-30 20:09:57 +0000 |
commit | 801ad70cb77d76517165c65975af707e03a6b6ef (patch) | |
tree | 44ef6cb231681e24ab2d3be19c0b592e8bc40ba3 /app/helpers | |
parent | c9c269abf7e9c193d29222ea198f34409bbaa6f9 (diff) | |
download | redmine-801ad70cb77d76517165c65975af707e03a6b6ef.tar.gz redmine-801ad70cb77d76517165c65975af707e03a6b6ef.zip |
Show timelog reports for non-versioned issues (#3051).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2643 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/timelog_helper.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/helpers/timelog_helper.rb b/app/helpers/timelog_helper.rb index f43bce0bc..d34694f1b 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) |