diff options
author | terry%mozilla.org <> | 2000-01-14 02:46:01 +0100 |
---|---|---|
committer | terry%mozilla.org <> | 2000-01-14 02:46:01 +0100 |
commit | 58259e7b438a18c7e99b0c93622f97a6b9e4d314 (patch) | |
tree | 9435128ef65de3388070f600e6266bd0bfda73ec /process_bug.cgi | |
parent | 6e55e7602ff2a70a10c5aeb64389f5df3ab88a95 (diff) | |
download | bugzilla-58259e7b438a18c7e99b0c93622f97a6b9e4d314.tar.gz bugzilla-58259e7b438a18c7e99b0c93622f97a6b9e4d314.tar.xz |
Was sometimes putting a silly timestamp in the change log.
Diffstat (limited to 'process_bug.cgi')
-rwxr-xr-x | process_bug.cgi | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/process_bug.cgi b/process_bug.cgi index 17d71bc03..36bfe71be 100755 --- a/process_bug.cgi +++ b/process_bug.cgi @@ -584,7 +584,11 @@ The changes made were: if ($::comma ne "") { SendSQL($query); + SendSQL("select delta_ts from bugs where bug_id = $id"); + } else { + SendSQL("select now()"); } + $timestamp = FetchOneColumn(); if (defined $::FORM{'comment'}) { AppendComment($id, $::FORM{'who'}, $::FORM{'comment'}); @@ -597,8 +601,6 @@ The changes made were: } } - SendSQL("select delta_ts from bugs where bug_id = $id"); - $timestamp = FetchOneColumn(); if (defined $::FORM{'dependson'}) { my $me = "blocked"; @@ -684,7 +686,7 @@ The changes made were: $col = SqlQuote($col); $old = SqlQuote($old); $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>" SendSQL($q); } |