Commit 96681820 authored by Graham McVicker's avatar Graham McVicker
Browse files

do not do translation modification if transcript edits are disabled

parent e4e065a5
......@@ -1144,7 +1144,13 @@ sub translate {
-alphabet => 'dna',
-id => $display_id );
return $self->translation->modify_translation( $peptide->translate() );
my $translation = $peptide->translate();
if($self->edits_enabled()) {
$self->translation()->modify_translation( $translation );
}
return $translation;
}
......
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