Skip to content

Commit

Permalink
Merge pull request #5264 from solgenomics/topic/fix-analysis-detail-page
Browse files Browse the repository at this point in the history
declare analysis object before eval block
  • Loading branch information
lukasmueller authored Jan 9, 2025
2 parents 2e409b6 + 45aec2a commit 1d9dd70
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/SGN/Controller/Analysis.pm
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,9 @@ sub analysis_detail :Path('/analyses') Args(1) {
my $bcs_schema = $c->dbic_schema("Bio::Chado::Schema", undef, $user_id);
print STDERR "Viewing analysis with id $analysis_id\n";

my $a;
eval {
my $a = CXGN::Analysis->new({
$a = CXGN::Analysis->new({
bcs_schema => $bcs_schema,
people_schema => $c->dbic_schema("CXGN::People::Schema", undef, $user_id),
metadata_schema => $c->dbic_schema("CXGN::Metadata::Schema", undef, $user_id),
Expand Down

0 comments on commit 1d9dd70

Please sign in to comment.