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
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
5983f96e
Commit
5983f96e
authored
Jul 08, 1999
by
terry%mozilla.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable custom bug creation pages that try to set more fields than
enter_bug.cgi does.
parent
d5672776
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
post_bug.cgi
post_bug.cgi
+10
-4
No files found.
post_bug.cgi
View file @
5983f96e
...
...
@@ -78,7 +78,8 @@ $::FORM{'reporter'} = DBNameToIdAndCheck($::FORM{'reporter'});
my
@bug_fields
=
(
"reporter"
,
"product"
,
"version"
,
"rep_platform"
,
"bug_severity"
,
"priority"
,
"op_sys"
,
"assigned_to"
,
"bug_status"
,
"bug_file_loc"
,
"short_desc"
,
"component"
);
"bug_status"
,
"bug_file_loc"
,
"short_desc"
,
"component"
,
"status_whiteboard"
,
"target_milestone"
);
if
(
Param
(
"useqacontact"
))
{
SendSQL
(
"select initialqacontact from components where program="
.
...
...
@@ -93,15 +94,20 @@ if (Param("useqacontact")) {
my
@used_fields
;
foreach
my
$f
(
@bug_fields
)
{
if
(
exists
$::FORM
{
$f
})
{
push
(
@used_fields
,
$f
);
}
}
my
$query
=
"insert into bugs (\n"
.
join
(
",\n"
,
@bug_fields
)
.
",
my
$query
=
"insert into bugs (\n"
.
join
(
",\n"
,
@used_fields
)
.
",
creation_ts, long_desc )
values (
"
;
foreach
my
$field
(
@
bug
_fields
)
{
foreach
my
$field
(
@
used
_fields
)
{
$query
.=
SqlQuote
(
$::FORM
{
$field
})
.
",\n"
;
}
...
...
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