diff --git a/app/controllers/samples_controller.rb b/app/controllers/samples_controller.rb index 459fbf445..2871b73d3 100644 --- a/app/controllers/samples_controller.rb +++ b/app/controllers/samples_controller.rb @@ -68,7 +68,7 @@ class SamplesController < ApplicationController errors[:init_fields] = sample.errors.messages else # Sample was saved, we can add all newly added sample fields - params[:custom_fields].to_a.each do |id, val| + custom_fields_params.to_a.each do |id, val| scf = SampleCustomField.new( custom_field_id: id, sample_id: sample.id,