From a4f00f605e26a25ad00a3fac60c098490076e4bb Mon Sep 17 00:00:00 2001 From: "terry%mozilla.org" Date: Thu, 13 Jan 2000 17:46:01 +0000 Subject: [PATCH] Was sometimes putting a silly timestamp in the change log. git-svn-id: svn://10.0.0.236/trunk@57683 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/webtools/bugzilla/process_bug.cgi | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/mozilla/webtools/bugzilla/process_bug.cgi b/mozilla/webtools/bugzilla/process_bug.cgi index 17d71bc03ee..36bfe71bee6 100755 --- a/mozilla/webtools/bugzilla/process_bug.cgi +++ b/mozilla/webtools/bugzilla/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 "
$q
" SendSQL($q); }