Skip to content

Commit

Permalink
Fix search/browse profiles when integer LINcode field is defined.
Browse files Browse the repository at this point in the history
Fixes #917.
  • Loading branch information
kjolley committed Jun 22, 2023
1 parent 3af6344 commit 1d404d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/BIGSdb/ResultsTablePage.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1371,7 +1371,7 @@ sub _print_profile_table {
[ $scheme_id, $field ] );
my $order = $type eq 'integer' ? 'CAST(value AS integer)' : 'value';
my $values = $self->{'datastore'}->run_query(
"SELECT DISTINCT(value) FROM $join_table WHERE "
"SELECT DISTINCT($order) FROM $join_table WHERE "
. '(lincodes.scheme_id,lincode_prefixes.field,lincodes.lincode)='
. "(?,?,?) ORDER BY $order",
[ $scheme_id, $field, $lincode ],
Expand Down

0 comments on commit 1d404d0

Please sign in to comment.