diff options
author | Go MAEDA <maeda@farend.jp> | 2019-04-30 03:10:43 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2019-04-30 03:10:43 +0000 |
commit | 470c1687839be9dfde88f83a159e13eb4a666893 (patch) | |
tree | bdf165566af73f9eb55790e73d25d92c6629519b /app/models/query.rb | |
parent | 3bccfe82271930f3e68cc826c9dee32e1b608ae3 (diff) | |
download | redmine-470c1687839be9dfde88f83a159e13eb4a666893.tar.gz redmine-470c1687839be9dfde88f83a159e13eb4a666893.zip |
Changes Query#as_params for more complete serialization (#31276).
Patch by Jens Krämer.
git-svn-id: http://svn.redmine.org/redmine/trunk@18103 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/query.rb')
-rw-r--r-- | app/models/query.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/query.rb b/app/models/query.rb index da76b974d..6dea88c78 100644 --- a/app/models/query.rb +++ b/app/models/query.rb @@ -426,6 +426,8 @@ class Query < ActiveRecord::Base params[:v][field] = options[:values] end params[:c] = column_names + params[:group_by] = group_by.to_s if group_by.present? + params[:t] = totalable_names.map(&:to_s) if totalable_names.any? params[:sort] = sort_criteria.to_param params[:set_filter] = 1 params |