Merge pull request #1024 from okriuchykhin/ok_SCI_2145

Fix sample record creation [SCI-2145]
This commit is contained in:
okriuchykhin 2018-03-09 16:52:38 +01:00 committed by GitHub
commit 707d2a048f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,