Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ivan Ivlev
bugzilla
Commits
d6e7117d
Commit
d6e7117d
authored
Jan 08, 2005
by
travis%sedsystems.ca
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 276446: Initial description cannot be made private on new bug creation
Patch: travis r=joini a=justdave
parent
ed09207e
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
3 deletions
+28
-3
enter_bug.cgi
enter_bug.cgi
+2
-0
post_bug.cgi
post_bug.cgi
+9
-3
create.html.tmpl
template/en/default/bug/create/create.html.tmpl
+17
-0
No files found.
enter_bug.cgi
View file @
d6e7117d
...
...
@@ -339,6 +339,8 @@ $vars->{'keywords'} = formvalue('keywords');
$vars
->
{
'dependson'
}
=
formvalue
(
'dependson'
);
$vars
->
{
'blocked'
}
=
formvalue
(
'blocked'
);
$vars
->
{
'commentprivacy'
}
=
formvalue
(
'commentprivacy'
);
# Use the version specified in the URL, if one is supplied. If not,
# then use the cookie-specified value. (Posting a bug sets a cookie
# for the current version.) If no URL or cookie version, the default
...
...
post_bug.cgi
View file @
d6e7117d
...
...
@@ -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
))
{
...
...
template/en/default/bug/create/create.html.tmpl
View file @
d6e7117d
...
...
@@ -18,6 +18,7 @@
#
# Contributor(s): Gervase Markham <gerv@gerv.net>
# Ville Skyttä <ville.skytta@iki.fi>
# Shane H. W. Travis <travis@sedsystems.ca>
#%]
[% PROCESS global/variables.none.tmpl %]
...
...
@@ -247,6 +248,22 @@ function set_assign_to() {
</td>
</tr>
[% IF Param("insidergroup") && UserInGroup(Param("insidergroup")) %]
<tr>
<td></td>
<td colspan="3">
<input type="checkbox" id="commentprivacy" name="commentprivacy"
[% " checked=\"checked\"" IF commentprivacy %]>
<label for="commentprivacy">
Initial Description is Private
</label>
</td>
</tr>
[% ELSE %]
<input type="hidden" name="commentprivacy" value="0">
[% END %]
[% IF UserInGroup('editbugs') %]
[% IF use_keywords %]
<tr>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment