mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-29 11:45:18 +08:00
Fix error when editing office document (#1793)
This commit is contained in:
parent
fb30e6b6e5
commit
8f2d873130
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue