Skip to content
Snippets Groups Projects
Commit f1b5e3f2 authored by Andreas Kusalananda Kähäri's avatar Andreas Kusalananda Kähäri
Browse files

Tweak get_all_alternative_translations().

parent e14ef411
No related branches found
No related tags found
No related merge requests found
......@@ -637,8 +637,13 @@ sub get_all_alternative_translations {
my $pa = $self->adaptor()->db()->get_TranslationAdaptor();
my @translations = @{ $pa->fetch_all_by_Transcript($self) };
$self->{'alternative_translations'} = [];
foreach my $translation (@translations) {
if ( $translation->dbID() == $canonical_translation->dbID() ) {
if (
$translation->stable_id() eq $canonical_translation->stable_id()
)
{
next;
}
......
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