summaryrefslogtreecommitdiffstats
path: root/app/controllers/timelog_controller.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2013-02-19 20:41:54 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2013-02-19 20:41:54 +0000
commitf8c649320f849dec288407a771d446108dc40931 (patch)
treec8dfd1900c26ade2c57a63fccb8c5a88b2aa5b40 /app/controllers/timelog_controller.rb
parentaf92686c62c33d5566241d619b06b03f82ecb269 (diff)
downloadredmine-f8c649320f849dec288407a771d446108dc40931.tar.gz
redmine-f8c649320f849dec288407a771d446108dc40931.zip
Makes all time entry columns available in the CSV export.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11442 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/timelog_controller.rb')
-rw-r--r--app/controllers/timelog_controller.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/controllers/timelog_controller.rb b/app/controllers/timelog_controller.rb
index a6f160fa0..e90442c68 100644
--- a/app/controllers/timelog_controller.rb
+++ b/app/controllers/timelog_controller.rb
@@ -39,6 +39,7 @@ class TimelogController < ApplicationController
helper :custom_fields
include CustomFieldsHelper
helper :queries
+ include QueriesHelper
def index
@query = TimeEntryQuery.build_from_params(params, :project => @project, :name => '_')
@@ -86,7 +87,7 @@ class TimelogController < ApplicationController
:include => [:project, :activity, :user, {:issue => [:tracker, :assigned_to, :priority]}],
:order => sort_clause
)
- send_data(entries_to_csv(@entries), :type => 'text/csv; header=present', :filename => 'timelog.csv')
+ send_data(entries_to_csv(@entries, @query, params), :type => 'text/csv; header=present', :filename => 'timelog.csv')
}
end
end