Fix error when editing office document (#1793)

This commit is contained in:
aignatov-bio 2019-05-22 10:34:16 +02:00 committed by GitHub
parent fb30e6b6e5
commit 8f2d873130
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -309,8 +309,8 @@ class AssetsController < ApplicationController
end
def append_wd_params(url)
exclude_params = %i(wdPreviousSession wdPreviousCorrelation)
wd_params = params.select { |key, _value| key[/^wd.*/] && !(exclude_params.include? key) }.to_query
exclude_params = %w(wdPreviousSession wdPreviousCorrelation)
wd_params = params.as_json.select { |key, _value| key[/^wd.*/] && !(exclude_params.include? key) }.to_query
url + '&' + wd_params
end