Skip to content

Commit 45049ef

Browse files
authored
Merge pull request #745 from tadast/tt/fix-edit
Fix setting params from previous search
2 parents bbc50c7 + 0c74736 commit 45049ef

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/sequenceserver/routes.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ def update_searchdata_from_job(searchdata)
298298
# the user hits the back button. Thus we do not test for empty string.
299299
method = job.method.to_sym
300300
if job.advanced && job.advanced !=
301-
searchdata[:options][method][:default].join(' ')
301+
searchdata.dig(:options, method, :default, :attributes).to_a.join(' ')
302302
searchdata[:options] = searchdata[:options].deep_copy
303303
searchdata[:options][method]['last search'] = [job.advanced]
304304
end

0 commit comments

Comments
 (0)