From: Go MAEDA Date: Wed, 5 Jun 2019 11:45:05 +0000 (+0000) Subject: CSV export of time entries report does not honor project filter (#31511). X-Git-Tag: 4.1.0~827 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4b19df4dd3b9a622cc57abf5247c0049f49a517f;p=redmine.git CSV export of time entries report does not honor project filter (#31511). Patch by Xavier Calland. git-svn-id: http://svn.redmine.org/redmine/trunk@18227 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/views/timelog/report.html.erb b/app/views/timelog/report.html.erb index ae64a891e..24425a55d 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); }); });