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,8 +35,12 @@ module TimelogHelper
end end
def select_hours(data, criteria, value) def select_hours(data, criteria, value)
if value.to_s.empty?
data.select {|row| row[criteria].blank? }
else
data.select {|row| row[criteria] == value} data.select {|row| row[criteria] == value}
end end
end
def sum_hours(data) def sum_hours(data)
sum = 0 sum = 0