redmine_charts patch for Redmine0.9.0 ยป redmine_charts_for_redmine-0.9.0.patch
C:\fujihara\after\lib/redmine_charts/conditions_utils.rb Sat Jan 30 00:33:06 2010 | ||
---|---|---|
35 | 35 |
|
36 | 36 |
["time_entries.user_id".to_sym, users.to_a.unshift([l(:charts_condition_all), 0])] |
37 | 37 |
when "time_entries.issue_id".to_sym then ["time_entries.issue_id".to_sym, nil] |
38 |
when "time_entries.activity_id".to_sym then ["time_entries.activity_id".to_sym, Enumeration.find_all_by_opt("ACTI").collect { |a| [a.name, a.id] }.unshift([l(:charts_condition_all), 0])]
|
|
38 |
when "time_entries.activity_id".to_sym then ["time_entries.activity_id".to_sym, Enumeration.find_all_by_type("TimeEntryActivity").collect { |a| [a.name, a.id] }.unshift([l(:charts_condition_all), 0])]
|
|
39 | 39 |
when "issues.category_id".to_sym then ["issues.category_id".to_sym, IssueCategory.find_all_by_project_id(project_and_its_children_ids(project_id)).collect { |c| [c.name, c.id] }.unshift([l(:charts_condition_all), 0])] |
40 | 40 |
when "issues.fixed_version_id".to_sym then ["issues.fixed_version_id".to_sym, Version.find_all_by_project_id(project_and_its_children_ids(project_id)).collect { |c| [c.name, c.id] }.unshift([l(:charts_condition_all), 0])] |
41 | 41 |
when "issues.tracker_id".to_sym then ["issues.tracker_id".to_sym, Tracker.all.collect { |c| [c.name, c.id] }.unshift([l(:charts_condition_all), 0])] |
42 |
when "issues.priority_id".to_sym then ["issues.priority_id".to_sym, Enumeration.find_all_by_opt("IPRI").collect { |a| [a.name, a.id] }.unshift([l(:charts_condition_all), 0])]
|
|
42 |
when "issues.priority_id".to_sym then ["issues.priority_id".to_sym, Enumeration.find_all_by_type("IssuePriority").collect { |a| [a.name, a.id] }.unshift([l(:charts_condition_all), 0])]
|
|
43 | 43 |
end |
44 | 44 |
end |
45 | 45 |
end |