"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "app/models/query.rb" between
redmine-4.0.3.tar.gz and redmine-4.0.4.tar.gz

About: Redmine is a flexible project management and bug-tracking web application (using the Ruby on Rails framework). It supports also project wikis and forums, documents management, and multiple version control systems.

query.rb  (redmine-4.0.3):query.rb  (redmine-4.0.4)
skipping to change at line 404 skipping to change at line 404
params = {} params = {}
filters.each do |field, options| filters.each do |field, options|
params[:f] ||= [] params[:f] ||= []
params[:f] << field params[:f] << field
params[:op] ||= {} params[:op] ||= {}
params[:op][field] = options[:operator] params[:op][field] = options[:operator]
params[:v] ||= {} params[:v] ||= {}
params[:v][field] = options[:values] params[:v][field] = options[:values]
end end
params[:c] = column_names 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[:sort] = sort_criteria.to_param
params[:set_filter] = 1 params[:set_filter] = 1
params params
else else
{:query_id => id} {:query_id => id}
end end
end end
def validate_query_filters def validate_query_filters
filters.each_key do |field| filters.each_key do |field|
 End of changes. 1 change blocks. 
0 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)