Defect #31511
closed
Thank you for sharing the probrem.
I have confirmed that the following changes solve the problem.
diff --git a/app/views/timelog/report.html.erb b/app/views/timelog/report.html.erb
index ae64a891e1..24425a55d0 100644
--- a/app/views/timelog/report.html.erb
+++ b/app/views/timelog/report.html.erb
@@ -88,8 +88,8 @@
$(document).ready(function(){
$('input#csv-export-button').click(function(){
$('form input#encoding').val($('select#encoding option:selected').val());
- $('form#query_form').attr('action', '<%= report_time_entries_path(:format => 'csv') %>').submit();
- $('form#query_form').attr('action', '<%= report_time_entries_path %>');
+ $('form#query_form').attr('action', '<%= _report_time_entries_path(@project, nil, :format => 'csv') %>').submit();
+ $('form#query_form').attr('action', '<%= _report_time_entries_path(@project, nil) %>');
hideModal(this);
});
});
Here is a patch for this issue (its tracker may be changed).
Tests done :
- Export from "/time_entries/report"
→ uses "/time_entries/report.csv"
- Export from "/project/foo/time_entries/report"
→ uses "/project/foo/time_entries/report.csv"
- Target version set to 4.0.4
Setting the target version to 4.0.4.
- Related to Feature #26279: Allow switching the encoding to UTF-8 when exporting to CSV added
- Subject changed from CSV export of time entries does not honor project filter to CSV export of time entries report does not honor project filter
- Status changed from New to Confirmed
- Status changed from Confirmed to Resolved
- Assignee set to Go MAEDA
- Resolution set to Fixed
Committed the fix. Thank you for reporting and fixing this issue.
- Status changed from Resolved to Closed
- Has duplicate Defect #30809: Spent time report > CSV not obeying filters added
Also available in: Atom
PDF