Permalink
Browse files

Fix setting edits_pending to relationships since counters were tempor…

…arily disabled
  • Loading branch information...
1 parent fc924f5 commit 019be26269c5658dcc48f1acd10407692fda479b @ocharles ocharles committed Jul 31, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/MusicBrainz/Server/Data/Relationship.pm
@@ -402,7 +402,7 @@ sub adjust_edit_pending
$self->_check_types($type0, $type1);
my $query = "UPDATE l_${type0}_${type1}
- SET edits_pending = edits_pending + ?
+ SET edits_pending = numeric_larger(0, edits_pending + ?)
WHERE id IN (" . placeholders(@ids) . ")";
$self->sql->do($query, $adjust, @ids);
}

0 comments on commit 019be26

Please sign in to comment.