diff options
author | lpsolit%gmail.com <> | 2005-12-30 06:11:00 +0100 |
---|---|---|
committer | lpsolit%gmail.com <> | 2005-12-30 06:11:00 +0100 |
commit | f4401b3f02b75e8dfe563b516702e249e60b7eb7 (patch) | |
tree | db2fd6806b69472040aff65428ed871e9ffb8cae | |
parent | fcb78bd2ff5819c5a340d2fe1db41609b89f5370 (diff) | |
download | bugzilla-f4401b3f02b75e8dfe563b516702e249e60b7eb7.tar.gz bugzilla-f4401b3f02b75e8dfe563b516702e249e60b7eb7.tar.xz |
Bug 320997: Taking a bug when posting an attachment doesn't set everconfirmed - Patch by Paul <pdemarco@zoominternet.net> r=wicked a=justdave
-rwxr-xr-x | attachment.cgi | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/attachment.cgi b/attachment.cgi index dbd1e82d4..973b8b528 100755 --- a/attachment.cgi +++ b/attachment.cgi @@ -1048,7 +1048,8 @@ sub insert if ($cgi->param('takebug') && UserInGroup("editbugs")) { - my @fields = ("assigned_to", "bug_status", "resolution", "login_name"); + my @fields = ("assigned_to", "bug_status", "resolution", "everconfirmed", + "login_name"); # Get the old values, for the bugs_activity table SendSQL("SELECT " . join(", ", @fields) . " " . @@ -1058,25 +1059,25 @@ sub insert "WHERE bugs.bug_id = $bugid"); my @oldvalues = FetchSQLData(); - my @newvalues = ($userid, "ASSIGNED", "", Bugzilla->user->login); + my @newvalues = ($userid, "ASSIGNED", "", 1, Bugzilla->user->login); # Make sure the person we are taking the bug from gets mail. - $owner = $oldvalues[3]; + $owner = $oldvalues[4]; @oldvalues = map(SqlQuote($_), @oldvalues); @newvalues = map(SqlQuote($_), @newvalues); # Update the bug record. Note that this doesn't involve login_name. SendSQL("UPDATE bugs SET delta_ts = $sql_timestamp, " . - join(", ", map("$fields[$_] = $newvalues[$_]", (0..2))) . + join(", ", map("$fields[$_] = $newvalues[$_]", (0..3))) . " WHERE bug_id = $bugid"); # We store email addresses in the bugs_activity table rather than IDs. - $oldvalues[0] = $oldvalues[3]; - $newvalues[0] = $newvalues[3]; + $oldvalues[0] = $oldvalues[4]; + $newvalues[0] = $newvalues[4]; # Add the changes to the bugs_activity table - for (my $i = 0; $i < 3; $i++) { + for (my $i = 0; $i < 4; $i++) { if ($oldvalues[$i] ne $newvalues[$i]) { my $fieldid = get_field_id($fields[$i]); SendSQL("INSERT INTO bugs_activity " . |