From 8f2d8731301e9a5eaf68d07fe0e62e7db8b2dd67 Mon Sep 17 00:00:00 2001 From: aignatov-bio <47317017+aignatov-bio@users.noreply.github.com> Date: Wed, 22 May 2019 10:34:16 +0200 Subject: [PATCH] Fix error when editing office document (#1793) --- app/controllers/assets_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/assets_controller.rb b/app/controllers/assets_controller.rb index 2081d7963..00c5e918a 100644 --- a/app/controllers/assets_controller.rb +++ b/app/controllers/assets_controller.rb @@ -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