From 4eb5c368dfcba546c1dac6b3c15f9566e047336a Mon Sep 17 00:00:00 2001 From: ryan-preble Date: Tue, 19 Nov 2024 13:20:09 -0500 Subject: [PATCH 1/2] Changed datatable name from analyses to stored analyses --- mason/stock/trials.mas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mason/stock/trials.mas b/mason/stock/trials.mas index 74cd8fb995..3478e1b782 100644 --- a/mason/stock/trials.mas +++ b/mason/stock/trials.mas @@ -24,7 +24,7 @@ $type_name % if ($type_name eq "accession") {
- Analyses + Stored Analyses

From 69ea6718767de95e65841af2756cf35f59c5800c Mon Sep 17 00:00:00 2001 From: ryan-preble Date: Tue, 19 Nov 2024 13:46:33 -0500 Subject: [PATCH 2/2] Fixed an AJAX function that broke for apparently no reason --- lib/SGN/Controller/AJAX/Stock.pm | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/lib/SGN/Controller/AJAX/Stock.pm b/lib/SGN/Controller/AJAX/Stock.pm index c2d36cf6b4..2369a19a1e 100644 --- a/lib/SGN/Controller/AJAX/Stock.pm +++ b/lib/SGN/Controller/AJAX/Stock.pm @@ -1744,13 +1744,7 @@ sub get_stock_stored_analyses :Chained('/stock/get_stock') PathPart('datatables/ =cut -sub get_shared_trials :Path('/stock/get_shared_trials') : ActionClass('REST'){ - -my sub get_shared_trials_POST :Args(1) { - my ($self, $c) = @_; - $c->stash->{rest} = { error => "Nothing here, it's a POST.." } ; -} -my sub get_shared_trials_GET :Args(1) { +sub get_shared_trials :Path('/stock/get_shared_trials'){ my $self = shift; my $c = shift; @@ -1843,7 +1837,6 @@ my sub get_shared_trials_GET :Args(1) { } $c->stash->{rest} = { data => \@formatted_rows, shared_trials => \@shared_trials }; - } } =head2 action get_stock_trait_list()