summaryrefslogtreecommitdiffstats
path: root/editproducts.cgi
diff options
context:
space:
mode:
authortravis%sedsystems.ca <>2005-02-09 01:51:02 +0100
committertravis%sedsystems.ca <>2005-02-09 01:51:02 +0100
commitf8aeecaf8cd33d87315c5a50be9a762e142062a4 (patch)
treec92dc215a4f6780005bacf825fb6fbdc39552ae1 /editproducts.cgi
parentc0df359943e8b746f02f5c43d25e5ffea99f8d19 (diff)
downloadbugzilla-f8aeecaf8cd33d87315c5a50be9a762e142062a4.tar.gz
bugzilla-f8aeecaf8cd33d87315c5a50be9a762e142062a4.tar.xz
Bug 257315 : type of delta_ts in bugs table should not be timestamp
Patch by Tomas Kopal <Tomas.Kopal@altap.cz> r=mkanat, LpSolit a=justdave
Diffstat (limited to 'editproducts.cgi')
-rwxr-xr-xeditproducts.cgi16
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++;
}