Fix sample record creation [SCI-2145]

This commit is contained in:
Oleksii Kriuchykhin 2018-03-09 11:52:28 +01:00
parent 160935cde0
commit 804d313f90

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.each do |id, val|
scf = SampleCustomField.new(
custom_field_id: id,
sample_id: sample.id,