mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-06 07:33:04 +08:00
Merge pull request #1024 from okriuchykhin/ok_SCI_2145
Fix sample record creation [SCI-2145]
This commit is contained in:
commit
707d2a048f
1 changed files with 1 additions and 1 deletions
|
@ -68,7 +68,7 @@ class SamplesController < ApplicationController
|
||||||
errors[:init_fields] = sample.errors.messages
|
errors[:init_fields] = sample.errors.messages
|
||||||
else
|
else
|
||||||
# Sample was saved, we can add all newly added sample fields
|
# 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(
|
scf = SampleCustomField.new(
|
||||||
custom_field_id: id,
|
custom_field_id: id,
|
||||||
sample_id: sample.id,
|
sample_id: sample.id,
|
||||||
|
|
Loading…
Reference in a new issue