From 4b19df4dd3b9a622cc57abf5247c0049f49a517f Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Wed, 5 Jun 2019 11:45:05 +0000 Subject: [PATCH] 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 --- app/views/timelog/report.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); }); }); -- 2.39.5