Commit 81f06bd0 authored by Andreas Kusalananda Kähäri's avatar Andreas Kusalananda Kähäri
Browse files

If the translations do not have stable IDs, use their dbIDs to compare

them instead.  Bug fix for Amy.
parent a2c01565
......@@ -848,8 +848,17 @@ sub seq {
my $transcript = $self->transcript();
my $canonical_translation = $transcript->translation();
my $is_alternative =
my $is_alternative;
if ( defined( $canonical_translation->stable_id() )
&& defined( $self->stable_id() ) )
{
$is_alternative =
( $canonical_translation->stable_id() ne $self->stable_id() );
} else {
$is_alternative =
( $canonical_translation->dbID() != $self->dbID() );
}
if ($is_alternative) {
# To deal with non-canonical (alternative) translations, subsitute
......
Markdown is supported
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