Defect #20018 » 20018.patch
| lib/redmine/helpers/time_report.rb | ||
|---|---|---|
|
'tracker' => {:sql => "#{Issue.table_name}.tracker_id",
|
||
|
:klass => Tracker,
|
||
|
:label => :label_tracker},
|
||
|
'activity' => {:sql => "#{TimeEntry.table_name}.activity_id",
|
||
|
'activity' => {:sql => "COALESCE(#{TimeEntryActivity.table_name}.parent_id, #{TimeEntryActivity.table_name}.id)",
|
||
|
:klass => TimeEntryActivity,
|
||
|
:label => :field_activity},
|
||
|
'issue' => {:sql => "#{TimeEntry.table_name}.issue_id",
|
||
| test/functional/timelog_report_test.rb | ||
|---|---|---|
|
assert_select 'td', :text => 'New'
|
||
|
end
|
||
|
def test_report_with_activity_criterion_should_aggregate_by_system_activity_ids
|
||
|
activity = TimeEntryActivity.create!(:name => 'Design', :parent_id => 9, :project_id => 3)
|
||
|
TimeEntry.generate!(:project_id => 3, :issue_id => 5, :activity_id => activity.id, :spent_on => '2007-05-23', :hours => 10.0)
|
||
|
get :report, :params => {:project_id => 1, :criteria => ['activity']}
|
||
|
assert_response :success
|
||
|
assert_select 'tr.last-level:first' do
|
||
|
assert_select 'td.name', :text => 'Design'
|
||
|
assert_select 'td.hours:last', :text => '165.25'
|
||
|
end
|
||
|
end
|
||
|
def test_report_all_projects_csv_export
|
||
|
get :report, :params => {
|
||
|
:columns => 'month',
|
||
- « Previous
- 1
- …
- 9
- 10
- 11
- Next »