Bug 276446: Initial description cannot be made private on new bug creation

Patch: travis  r=joini  a=justdave


git-svn-id: svn://10.0.0.236/trunk@167395 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
travis%sedsystems.ca
2005-01-07 20:25:20 +00:00
parent 27f8a37214
commit 1dd7d80d9c
3 changed files with 28 additions and 3 deletions

View File

@@ -419,9 +419,15 @@ foreach my $grouptoadd (@groupstoadd) {
VALUES ($id, $grouptoadd)");
}
# Add the comment
SendSQL("INSERT INTO longdescs (bug_id, who, bug_when, thetext)
VALUES ($id, $::userid, now(), " . SqlQuote($comment) . ")");
# Add the initial comment, allowing for the fact that it may be private
my $privacy = 0;
if (Param("insidergroup") && UserInGroup(Param("insidergroup"))) {
$privacy = $::FORM{'commentprivacy'} ? 1 : 0;
}
SendSQL("INSERT INTO longdescs (bug_id, who, bug_when, thetext, isprivate)
VALUES ($id, " . SqlQuote($user->id) . ", " . SqlQuote($timestamp) .
", " . SqlQuote($comment) . ", $privacy)");
# Insert the cclist into the database
foreach my $ccid (keys(%ccids)) {