From f2026872916cf073a09d65ad23f98d1da697e864 Mon Sep 17 00:00:00 2001 From: Oleksii Kriuchykhin Date: Wed, 15 Nov 2017 16:40:14 +0100 Subject: [PATCH] Allow import of the sample with missing non mandatory fields [SCI-1819] --- app/models/team.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/models/team.rb b/app/models/team.rb index 3331ef8c3..62423b35d 100644 --- a/app/models/team.rb +++ b/app/models/team.rb @@ -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)