diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-10-15 18:12:27 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-10-15 18:12:27 +0000 |
commit | f97d23b1b7eda8a3b3ef19cec471805a6d530665 (patch) | |
tree | 1770527934eeff2865270ddf87bd864b9751b4bc /app/helpers | |
parent | 91d5465162b077461f4f4f3b75220de8ca0fc319 (diff) | |
download | redmine-f97d23b1b7eda8a3b3ef19cec471805a6d530665.tar.gz redmine-f97d23b1b7eda8a3b3ef19cec471805a6d530665.zip |
Isolates csv options for a hash param (#1159).
git-svn-id: http://svn.redmine.org/redmine/trunk@14674 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/queries_helper.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/helpers/queries_helper.rb b/app/helpers/queries_helper.rb index f817265dd..865b950f8 100644 --- a/app/helpers/queries_helper.rb +++ b/app/helpers/queries_helper.rb @@ -184,6 +184,7 @@ module QueriesHelper end def query_to_csv(items, query, options={}) + options ||= {} columns = (options[:columns] == 'all' ? query.available_inline_columns : query.inline_columns) query.available_block_columns.each do |column| if options[column.name].present? |