### Eclipse Workspace Patch 1.0 #P Redmine Index: app/helpers/timelog_helper.rb =================================================================== --- app/helpers/timelog_helper.rb (revision 2632) +++ app/helpers/timelog_helper.rb (working copy) @@ -35,7 +35,11 @@ end def select_hours(data, criteria, value) - data.select {|row| row[criteria] == value} + if value.empty? + data.select {|row| row[criteria] == value || row[criteria].nil? } + else + data.select {|row| row[criteria] == value} + end end def sum_hours(data)