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

Slight mod to previous bugfix: Don't compare with $old_dbid if it's undefined.

parent 53dd7aa7
......@@ -831,7 +831,7 @@ sub store {
my $old_dbid = $translation->dbID();
$db->get_TranslationAdaptor()->store( $translation, $transc_dbID );
if ( $translation->dbID() != $old_dbid ) {
if ( defined($old_dbid) && $translation->dbID() != $old_dbid ) {
# The dbID of the translation changed. Need to update the
# canonical_translation_id for this transcript.
......
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