fix http_query_parameters

git-svn-id: https://dev.finn.de/svn/cockpit/branches/reporting_merge@1271 7926756e-e54e-46e6-9721-ed318f58905e
pull/6827/head
t.felgentreff 15 years ago
parent 31045a95b3
commit 419885fb7e
  1. 7
      app/controllers/cost_reports_controller.rb

@ -27,9 +27,10 @@ class CostReportsController < ApplicationController
##
# Extract active filters from the http params
def http_query_parameters
params[:fields].inject({}) do |hash, field|
hash[:operators][field] = params[:operators][field]
hash[:values][field] = params[:values][field]
params[:fields].inject({:operators => {}, :values => {}}) do |hash, field|
hash[:operators][field.to_sym] = params[:operators][field]
hash[:values][field.to_sym] = params[:values][field]
hash
end
end

Loading…
Cancel
Save