Skip to content

Commit

Permalink
Merge pull request #5289 from solgenomics/brapi_call_crashing
Browse files Browse the repository at this point in the history
Add condition to stop field management factors being recognized as traits
  • Loading branch information
lukasmueller authored Feb 13, 2025
2 parents 9438e32 + 2e9d213 commit c060f1d
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions lib/CXGN/BrAPI/v1/Studies.pm
Original file line number Diff line number Diff line change
Expand Up @@ -777,11 +777,12 @@ sub studies_table {
#print STDERR Dumper \@trait_names;
my @header_ids;
foreach my $t (@trait_names) {
if ($t eq 'notes'){
push @header_ids, 0;
} else {
push @header_ids, SGN::Model::Cvterm->get_cvterm_row_from_trait_name($self->bcs_schema, $t)->cvterm_id();
}
if ($t eq 'notes'){
push @header_ids, 0;
} else {
next unless $t =~ /\|/;
push @header_ids, SGN::Model::Cvterm->get_cvterm_row_from_trait_name($self->bcs_schema, $t)->cvterm_id();
}
}

my $start = $page_size*$page;
Expand Down

0 comments on commit c060f1d

Please sign in to comment.