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,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
|
||||||
|
|
Loading…
Reference in New Issue