]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 398990: process_bug.cgi shouldn't check the 'reporter' field as this field is...
authorlpsolit%gmail.com <>
Thu, 18 Oct 2007 03:50:22 +0000 (03:50 +0000)
committerlpsolit%gmail.com <>
Thu, 18 Oct 2007 03:50:22 +0000 (03:50 +0000)
Bugzilla/Bug.pm
Bugzilla/BugMail.pm

index ba96cb85e09df1e882d709f6fd2d8424894850d7..92e7f5bff502d5d6558e52ac5c90e55686e2d4fd 100755 (executable)
@@ -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);
     }
index 8b6f7678bb8f6aea865da57defe6463c23aa9ae7..9a68b1af7425eb4866aff1a5006060258b49406c 100644 (file)
@@ -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)};