From 8e37e73c27e913cf8d2ac7193dc7c95b38e49e97 Mon Sep 17 00:00:00 2001 From: Kevin De Pelseneer Date: Fri, 31 May 2024 16:28:05 +0200 Subject: [PATCH] Make use of `:is_input?` instead --- app/forms/isa_assay.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/forms/isa_assay.rb b/app/forms/isa_assay.rb index 7c6679d4b3..7e90b8751f 100644 --- a/app/forms/isa_assay.rb +++ b/app/forms/isa_assay.rb @@ -21,7 +21,7 @@ def save if valid? if @assay.new_record? && !@assay.is_assay_stream? # connect the sample type multi link attribute to the last sample type of the assay's study - input_attribute = @sample_type.sample_attributes.detect(&:seek_sample_multi?) + input_attribute = @sample_type.sample_attributes.detect(&:input_attribute?) input_attribute.linked_sample_type_id = @input_sample_type_id title = SampleType.find(@input_sample_type_id).sample_attributes.detect(&:is_title).title input_attribute.title = "Input (#{title})"