Skip to content

Commit

Permalink
Fix compatibility column showing up on all pages
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan-preble committed Feb 21, 2025
1 parent 56e3f05 commit 9c2d5b6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/SGN/Controller/AJAX/HTMLSelect.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1733,7 +1733,11 @@ sub get_datasets_select :Path('/ajax/html/select/datasets') Args(0) {
'genotyping_protocols' => 'nd_protocol_ids_2_protocols'
);

my $html = '<table class="table table-bordered table-hover" id="html-select-dataset-table-'.$num.'"><thead><tr><th>Select</th><th>Dataset Name</th><th>Contents</th><th>Compatibility</th></tr></thead><tbody>';
my $compatibility_header;
if ($show_compatibility){
$compatibility_header = '<th>Compatibility</th>';
}
my $html = '<table class="table table-bordered table-hover" id="html-select-dataset-table-'.$num.'"><thead><tr><th>Select</th><th>Dataset Name</th><th>Contents</th>'.$compatibility_header.'</tr></thead><tbody>';
foreach my $ds (@datasets) {
$html .= '<tr><td><input type="checkbox" name="'.$checkbox_name.'" value="'.$ds->{id}.'"></td><td><a href="/dataset/'.$ds->{id}.'">'.$ds->{name}.'</a></td><td>';

Expand Down

0 comments on commit 9c2d5b6

Please sign in to comment.