From: lpsolit%gmail.com <> Date: Thu, 18 Oct 2007 03:50:22 +0000 (+0000) Subject: Bug 398990: process_bug.cgi shouldn't check the 'reporter' field as this field is... X-Git-Tag: bugzilla-3.0.3~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fe5e25b8f3243a6fb868a615de2c5e5daf6f0502;p=thirdparty%2Fbugzilla.git Bug 398990: process_bug.cgi shouldn't check the 'reporter' field as this field is not editable - Patch by fedor ezeev r/a=LpSolit --- diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index ba96cb85e0..92e7f5bff5 100755 --- a/Bugzilla/Bug.pm +++ b/Bugzilla/Bug.pm @@ -1391,7 +1391,7 @@ sub editable_bug_fields { # Obsolete custom fields are not editable. my @obsolete_fields = Bugzilla->get_fields({obsolete => 1, custom => 1}); @obsolete_fields = map { $_->name } @obsolete_fields; - foreach my $remove ("bug_id", "creation_ts", "delta_ts", "lastdiffed", @obsolete_fields) { + foreach my $remove ("bug_id", "reporter", "creation_ts", "delta_ts", "lastdiffed", @obsolete_fields) { my $location = lsearch(\@fields, $remove); splice(@fields, $location, 1); } diff --git a/Bugzilla/BugMail.pm b/Bugzilla/BugMail.pm index 8b6f7678bb..9a68b1af74 100644 --- a/Bugzilla/BugMail.pm +++ b/Bugzilla/BugMail.pm @@ -110,7 +110,7 @@ sub Send { } my %values = %{$dbh->selectrow_hashref( - 'SELECT ' . join(',', editable_bug_fields()) . ', + 'SELECT ' . join(',', editable_bug_fields()) . ', reporter, lastdiffed AS start, LOCALTIMESTAMP(0) AS end FROM bugs WHERE bug_id = ?', undef, $id)};