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:
parent
c9c269abf7
commit
801ad70cb7
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue