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
This commit is contained in:
Jean-Philippe Lang 2009-03-30 20:09:57 +00:00
parent c9c269abf7
commit 801ad70cb7
1 changed files with 5 additions and 1 deletions

View File

@ -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)