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

Don't try to fetch alternative translations for a transcript if the

transcript does not have an associated adaptor.
parent 29c4a475
......@@ -625,7 +625,9 @@ sub translation {
sub get_all_alternative_translations {
my ($self) = @_;
if ( !defined( $self->{'alternative_translations'} ) ) {
if ( !defined( $self->{'alternative_translations'} )
&& defined( $self->adaptor() ) )
{
my $pa = $self->adaptor()->db()->get_TranslationAdaptor();
$self->{'alternative_translations'} =
$pa->fetch_all_by_Transcript($self);
......
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