зеркало из https://github.com/mozilla/pjs.git
Removing the last vote on a bug was causing an SQL error.
This commit is contained in:
Родитель
19d6a02128
Коммит
e034619875
|
@ -103,6 +103,7 @@ foreach my $id (@buglist) {
|
|||
foreach my $id (keys %affected) {
|
||||
SendSQL("select sum(count) from votes where bug_id = $id");
|
||||
my $v = FetchOneColumn();
|
||||
$v ||= 0;
|
||||
SendSQL("update bugs set votes = $v, delta_ts=delta_ts where bug_id = $id");
|
||||
}
|
||||
SendSQL("unlock tables");
|
||||
|
|
Загрузка…
Ссылка в новой задаче