mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-04 14:10:27 +08:00
fix samples_controller
This commit is contained in:
parent
9bb1bb3f9b
commit
e77df92017
1 changed files with 1 additions and 1 deletions
|
@ -202,7 +202,7 @@ class SamplesController < ApplicationController
|
||||||
scf = SampleCustomField.where("custom_field_id = ? AND sample_id = ?", id, sample.id).take
|
scf = SampleCustomField.where("custom_field_id = ? AND sample_id = ?", id, sample.id).take
|
||||||
|
|
||||||
if scf
|
if scf
|
||||||
old_text = scv.value
|
old_text = scf.value
|
||||||
# Well, client was naughty, no XMAS for him this year, update
|
# Well, client was naughty, no XMAS for him this year, update
|
||||||
# existing SCF instead of creating new one
|
# existing SCF instead of creating new one
|
||||||
scf.value = val
|
scf.value = val
|
||||||
|
|
Loading…
Reference in a new issue