Commit 58259e7b authored by terry%mozilla.org's avatar terry%mozilla.org

Was sometimes putting a silly timestamp in the change log.

parent 6e55e760
...@@ -584,7 +584,11 @@ The changes made were: ...@@ -584,7 +584,11 @@ The changes made were:
if ($::comma ne "") { if ($::comma ne "") {
SendSQL($query); SendSQL($query);
SendSQL("select delta_ts from bugs where bug_id = $id");
} else {
SendSQL("select now()");
} }
$timestamp = FetchOneColumn();
if (defined $::FORM{'comment'}) { if (defined $::FORM{'comment'}) {
AppendComment($id, $::FORM{'who'}, $::FORM{'comment'}); AppendComment($id, $::FORM{'who'}, $::FORM{'comment'});
...@@ -597,8 +601,6 @@ The changes made were: ...@@ -597,8 +601,6 @@ The changes made were:
} }
} }
SendSQL("select delta_ts from bugs where bug_id = $id");
$timestamp = FetchOneColumn();
if (defined $::FORM{'dependson'}) { if (defined $::FORM{'dependson'}) {
my $me = "blocked"; my $me = "blocked";
...@@ -684,7 +686,7 @@ The changes made were: ...@@ -684,7 +686,7 @@ The changes made were:
$col = SqlQuote($col); $col = SqlQuote($col);
$old = SqlQuote($old); $old = SqlQuote($old);
$new = SqlQuote($new); $new = SqlQuote($new);
my $q = "insert into bugs_activity (bug_id,who,bug_when,field,oldvalue,newvalue) values ($id,$whoid,$timestamp,$col,$old,$new)"; my $q = "insert into bugs_activity (bug_id,who,bug_when,field,oldvalue,newvalue) values ($id,$whoid,'$timestamp',$col,$old,$new)";
# puts "<pre>$q</pre>" # puts "<pre>$q</pre>"
SendSQL($q); SendSQL($q);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment