Search
Project
General
Profile
Home
Projects
Help
Sign in
Register
Search
:
Redmine
All Projects
Redmine
Overview
Download
Activity
Roadmap
Issues
News
Wiki
Plugins
Forums
Repository
Download (562 Bytes)
Patch #3051
ยป patch.txt
Brad Beattie
, 2009-03-25 22:25
### 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)
(1-1/1)
Loading...