diff --git a/lib/DDGC/DB/Result/Token/Language.pm b/lib/DDGC/DB/Result/Token/Language.pm index 1f7389f5c..fd1cf2133 100644 --- a/lib/DDGC/DB/Result/Token/Language.pm +++ b/lib/DDGC/DB/Result/Token/Language.pm @@ -191,11 +191,6 @@ sub add_user_translation { username => $user->username, })->first; unless ($found) { - $self->search_related('token_language_translations',{ - 'token_language_translation_votes.id' => undef, - },{ - join => [qw( token_language_translation_votes )] - })->delete; my $plurals=$self->max_msgstr_index; for (my $i = $plurals; $i > -1; $i--) { return 0 unless $translation->{'msgstr'.$i};