summaryrefslogtreecommitdiffstats
path: root/process_bug.cgi
diff options
context:
space:
mode:
authorgerv%gerv.net <>2002-08-20 06:17:18 +0200
committergerv%gerv.net <>2002-08-20 06:17:18 +0200
commit9c0a26d3a5a35788694f5f284c69b995a3298c86 (patch)
tree15cc4cfb1e5e9fb7bcc3898530776f44c7b52492 /process_bug.cgi
parente6fff23fcd99b09511b62c4db4eca658fe5257c4 (diff)
downloadbugzilla-9c0a26d3a5a35788694f5f284c69b995a3298c86.tar.gz
bugzilla-9c0a26d3a5a35788694f5f284c69b995a3298c86.tar.xz
Bug 143286 - Add support for Insiders, Private comments, Private Attachments. Patch by bugreport@peshkin.net; r=gerv.
Diffstat (limited to 'process_bug.cgi')
-rwxr-xr-xprocess_bug.cgi21
1 files changed, 19 insertions, 2 deletions
diff --git a/process_bug.cgi b/process_bug.cgi
index 85522b66d..02089297a 100755
--- a/process_bug.cgi
+++ b/process_bug.cgi
@@ -630,6 +630,22 @@ if ( $::FORM{'id'} ) {
}
}
+if ($::FORM{'id'} &&
+ (Param("insidergroup") && UserInGroup(Param("insidergroup")))) {
+ detaint_natural($::FORM{'id'});
+ foreach my $field (keys %::FORM) {
+ if ($field =~ /when-([0-9]+)/) {
+ my $sequence = $1;
+ my $private = $::FORM{"isprivate-$sequence"} ? 1 : 0 ;
+ if ($private != $::FORM{"oisprivate-$sequence"}) {
+ detaint_natural($::FORM{"$field"});
+ SendSQL("UPDATE longdescs SET isprivate = $private
+ WHERE bug_id = $::FORM{'id'} AND bug_when = " . $::FORM{"$field"});
+ }
+ }
+
+ }
+}
my $duplicate = 0;
@@ -1098,7 +1114,8 @@ foreach my $id (@idlist) {
$timestamp = FetchOneColumn();
if (defined $::FORM{'comment'}) {
- AppendComment($id, $::COOKIE{'Bugzilla_login'}, $::FORM{'comment'});
+ AppendComment($id, $::COOKIE{'Bugzilla_login'}, $::FORM{'comment'},
+ $::FORM{'commentprivacy'});
}
my $removedCcString = "";
@@ -1368,7 +1385,7 @@ foreach my $id (@idlist) {
LogActivityEntry($duplicate,"cc","",DBID_to_name($reporter));
SendSQL("INSERT INTO cc (who, bug_id) VALUES ($reporter, " . SqlQuote($duplicate) . ")");
}
- AppendComment($duplicate, $::COOKIE{'Bugzilla_login'}, "*** Bug $::FORM{'id'} has been marked as a duplicate of this bug. ***");
+ AppendComment($duplicate, $::COOKIE{'Bugzilla_login'}, "*** Bug $::FORM{'id'} has been marked as a duplicate of this bug. ***", 1);
CheckFormFieldDefined(\%::FORM,'comment');
SendSQL("INSERT INTO duplicates VALUES ($duplicate, $::FORM{'id'})");