Skip to content

Commit 0c74736

Browse files
committed
Fix setting params from previous search
THe options format has changed, this code needs to use the new data structure. Old option formats are converted to the new one when booting, so this works for everybody
1 parent bbc50c7 commit 0c74736

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)