diff options
author | lpsolit%gmail.com <> | 2007-10-18 03:48:59 +0000 |
---|---|---|
committer | lpsolit%gmail.com <> | 2007-10-18 03:48:59 +0000 |
commit | c6ede85fc67cefea141519c2b767cdcc600995ee (patch) | |
tree | 26214b20c014330d0898a82603c30e54a480abd4 | |
parent | Bug 400160: contrib/merge-users.pl doesn't merge all required fields - Patch ... (diff) | |
download | bugzilla-c6ede85fc67cefea141519c2b767cdcc600995ee.tar.gz bugzilla-c6ede85fc67cefea141519c2b767cdcc600995ee.tar.bz2 bugzilla-c6ede85fc67cefea141519c2b767cdcc600995ee.zip |
Bug 398990: process_bug.cgi shouldn't check the 'reporter' field as this field is not editable - Patch by fedor ezeev <fe@alterplast.ru> r/a=LpSolit
-rwxr-xr-x | Bugzilla/Bug.pm | 2 | ||||
-rw-r--r-- | Bugzilla/BugMail.pm | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index cc492ad41..597fd5258 100755 --- a/Bugzilla/Bug.pm +++ b/Bugzilla/Bug.pm @@ -2400,7 +2400,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 e771a9876..1f10714e8 100644 --- a/Bugzilla/BugMail.pm +++ b/Bugzilla/BugMail.pm @@ -112,7 +112,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)}; |