Skip to content
This repository has been archived by the owner on Nov 19, 2021. It is now read-only.

Commit

Permalink
Merge pull request #498 from duckduckgo/translation-overwrite-no-votes
Browse files Browse the repository at this point in the history
Do not delete existing 0-vote translations when inserting new translation
  • Loading branch information
jbarrett committed Feb 13, 2015
2 parents 3951539 + 291f55a commit 9027a45
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions lib/DDGC/DB/Result/Token/Language.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down

0 comments on commit 9027a45

Please sign in to comment.