]> source.dussan.org Git - redmine.git/commitdiff
Show timelog reports for non-versioned issues (#3051).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Mon, 30 Mar 2009 20:09:57 +0000 (20:09 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Mon, 30 Mar 2009 20:09:57 +0000 (20:09 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2643 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/helpers/timelog_helper.rb

index f43bce0bc8b72cbccec9dfee718a50d844dc149a..d34694f1b06b7c692ec9bfffe384789fb3ba4589 100644 (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)