Skip to content

Commit

Permalink
Make use of :is_input? instead
Browse files Browse the repository at this point in the history
  • Loading branch information
kdp-cloud committed May 31, 2024
1 parent f35182d commit 8e37e73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/forms/isa_assay.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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})"
Expand Down

0 comments on commit 8e37e73

Please sign in to comment.