Patch #3051 ยป patch.txt
| 1 |
### Eclipse Workspace Patch 1.0 |
|---|---|
| 2 |
#P Redmine |
| 3 |
Index: app/helpers/timelog_helper.rb |
| 4 |
=================================================================== |
| 5 |
--- app/helpers/timelog_helper.rb (revision 2632) |
| 6 |
+++ app/helpers/timelog_helper.rb (working copy) |
| 7 |
@@ -35,7 +35,11 @@ |
| 8 |
end |
| 9 |
|
| 10 |
def select_hours(data, criteria, value) |
| 11 |
- data.select {|row| row[criteria] == value}
|
| 12 |
+ if value.empty? |
| 13 |
+ data.select {|row| row[criteria] == value || row[criteria].nil? }
|
| 14 |
+ else |
| 15 |
+ data.select {|row| row[criteria] == value}
|
| 16 |
+ end |
| 17 |
end |
| 18 |
|
| 19 |
def sum_hours(data) |