diff options
Diffstat (limited to 'editproducts.cgi')
-rwxr-xr-x | editproducts.cgi | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/editproducts.cgi b/editproducts.cgi index d619909ae..3faa88563 100755 --- a/editproducts.cgi +++ b/editproducts.cgi @@ -1175,12 +1175,12 @@ if ($action eq 'updategroupcontrols') { my ($removed, $timestamp) = FetchSQLData(); LogActivityEntry($bugid, "bug_group", $removed, "", $::userid, $timestamp); + my $diffed = ""; if ($mailiscurrent != 0) { - SendSQL("UPDATE bugs SET lastdiffed = " . SqlQuote($timestamp) - . " WHERE bug_id = $bugid"); + $diffed = ", lastdiffed = " . SqlQuote($timestamp); } - SendSQL("UPDATE bugs SET delta_ts = " . SqlQuote($timestamp) - . " WHERE bug_id = $bugid"); + SendSQL("UPDATE bugs SET delta_ts = " . SqlQuote($timestamp) . + $diffed . " WHERE bug_id = $bugid"); PopGlobalSQLState(); $count++; } @@ -1209,12 +1209,12 @@ if ($action eq 'updategroupcontrols') { my ($added, $timestamp) = FetchSQLData(); LogActivityEntry($bugid, "bug_group", "", $added, $::userid, $timestamp); + my $diffed = ""; if ($mailiscurrent != 0) { - SendSQL("UPDATE bugs SET lastdiffed = " . SqlQuote($timestamp) - . " WHERE bug_id = $bugid"); + $diffed = ", lastdiffed = " . SqlQuote($timestamp); } - SendSQL("UPDATE bugs SET delta_ts = " . SqlQuote($timestamp) - . " WHERE bug_id = $bugid"); + SendSQL("UPDATE bugs SET delta_ts = " . SqlQuote($timestamp) . + $diffed . " WHERE bug_id = $bugid"); PopGlobalSQLState(); $count++; } |