From 3f4995bf02a974879789690889f9d4ba70a0cb54 Mon Sep 17 00:00:00 2001 From: Julien Portalier Date: Thu, 20 Jul 2023 12:01:59 +0200 Subject: [PATCH] Fix: Batch#build_sample doesn't copy some attributes (#1973) --- app/models/batch.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/models/batch.rb b/app/models/batch.rb index 5e9e0a0a8..8a0cf9aae 100644 --- a/app/models/batch.rb +++ b/app/models/batch.rb @@ -67,6 +67,10 @@ def build_sample(**attributes) isolate_name: isolate_name, inactivation_method: inactivation_method, virus_lineage: virus_lineage, + reference_gene: reference_gene, + target_organism_taxonomy_id: target_organism_taxonomy_id, + pango_lineage: pango_lineage, + who_label: who_label, **attributes ) end