diff options
author | justdave%bugzilla.org <> | 2005-01-30 13:22:27 +0100 |
---|---|---|
committer | justdave%bugzilla.org <> | 2005-01-30 13:22:27 +0100 |
commit | d9e238bc897b7614a81784dbebc69b9a155c9539 (patch) | |
tree | 53c77604819036f28ff7e833e3a6e2514d04883a /post_bug.cgi | |
parent | c59641d038e2892db2c40047dde929a2207dd297 (diff) | |
download | bugzilla-d9e238bc897b7614a81784dbebc69b9a155c9539.tar.gz bugzilla-d9e238bc897b7614a81784dbebc69b9a155c9539.tar.xz |
Backing out the checking from bug 257315 until it gets corrected. It prevents new bugs from being filed.
a=justdave
Diffstat (limited to 'post_bug.cgi')
-rwxr-xr-x | post_bug.cgi | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/post_bug.cgi b/post_bug.cgi index 112292171..40111ff77 100755 --- a/post_bug.cgi +++ b/post_bug.cgi @@ -321,14 +321,9 @@ if (UserInGroup("editbugs") && defined($::FORM{'dependson'})) { } } -# get current time -SendSQL("SELECT NOW()"); -my $timestamp = FetchOneColumn(); - - # Build up SQL string to add bug. my $sql = "INSERT INTO bugs " . - "(" . join(",", @used_fields) . ", reporter, creation_ts, delta_ts, " . + "(" . join(",", @used_fields) . ", reporter, creation_ts, " . "estimated_time, remaining_time, deadline) " . "VALUES ("; @@ -342,7 +337,7 @@ $comment = trim($comment); # OK except for the fact that it causes e-mail to be suppressed. $comment = $comment ? $comment : " "; -$sql .= "$::userid, $timestamp, $timestamp, "; +$sql .= "$::userid, now(), "; # Time Tracking if (UserInGroup(Param("timetrackinggroup")) && @@ -419,6 +414,9 @@ while (MoreSQLData()) { # Add the bug report to the DB. SendSQL($sql); +SendSQL("select now()"); +my $timestamp = FetchOneColumn(); + # Get the bug ID back. SendSQL("select LAST_INSERT_ID()"); my $id = FetchOneColumn(); @@ -458,8 +456,8 @@ if (UserInGroup("editbugs")) { while (MoreSQLData()) { push (@list, FetchOneColumn()); } - SendSQL("UPDATE bugs SET delta_ts = $timestamp," . - " keywords = " . SqlQuote(join(', ', @list)) . + SendSQL("UPDATE bugs SET keywords = " . + SqlQuote(join(', ', @list)) . " WHERE bug_id = $id"); } if (defined $::FORM{'dependson'}) { |