Allow import of the sample with missing non mandatory fields [SCI-1819]

This commit is contained in:
Oleksii Kriuchykhin 2017-11-15 16:40:14 +01:00
parent 47784e09a8
commit f202687291

View file

@ -94,6 +94,7 @@ class Team < ActiveRecord::Base
end
row.each.with_index do |value, index|
next unless value.present?
if index == stype_index
stype = SampleType.where(team: self)
.where('name ILIKE ?', value.strip)