Skip to content
Snippets Groups Projects
Commit 7e7ae643 authored by Dan Staines's avatar Dan Staines
Browse files

fixed problem where alternative translations could not be retrieved by dbID

parent 52cf94e5
No related branches found
No related tags found
No related merge requests found
......@@ -659,12 +659,12 @@ sub fetch_by_dbID {
if ( defined($transcript) ) {
my $translation = $self->fetch_by_Transcript($transcript);
if ( defined($translation) ) {
if ( defined($translation) && $translation->dbID()==$dbID ) {
return $translation;
}
my @alt_translations =
@{ $self->fetch_all_by_Transcript($transcript) };
@{ $self->fetch_all_alternative_by_Transcript($transcript) };
foreach my $alt_translation (@alt_translations) {
if ( $alt_translation->dbID() == $dbID ) {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment