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
a3f818ac
Commit
a3f818ac
authored
Aug 27, 1998
by
terry%netscape.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed bug 539 -- cope with multiple products in the system.
parent
4f8253ea
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
23 deletions
+23
-23
enter_bug.cgi
enter_bug.cgi
+23
-23
No files found.
enter_bug.cgi
View file @
a3f818ac
...
...
@@ -21,6 +21,24 @@
source
CGI.tcl
if
{
!
[
info
exists FORM
(
product
)]}
{
GetVersionTable
if
{[
array
size versions
]
!= 1
}
{
puts
"Content-type: text/html
\n
"
PutHeader
"Enter Bug"
"Enter Bug"
puts
"<H2>First, you must pick a product on which to enter a bug.</H2>"
foreach p
[
array
names versions
]
{
puts
"<a href=enter_bug.cgi?product=
$p
&
$buffer
>
$p
</a><br>"
}
exit
}
set $FORM
(
product
)
[
array
names versions
]
}
set
product $FORM
(
product
)
confirm_login
puts
"Content-type: text/html
\n
"
...
...
@@ -41,27 +59,7 @@ proc pickplatform {} {
}
}
proc
pickproduct
{}
{
global FORM env COOKIE product versions
set product missingProductSoPickDefault
set product
[
formvalue product
]
if
{
$product
==
""
}
{
if
{[
info
exists COOKIE
(
PRODUCT
)]}
{
set product $COOKIE
(
PRODUCT
)
}
else
{
switch -regexp
$env
(
HTTP_USER_AGENT
)
{
{
2.0Gold
}
{
set
product
"Hearst"
}
{
4
\.
0.*
;
*Nav
}
{
set product
"Ratbert"
}
{
4
\.
0
}
{
set
product
"Communicator"
}
{
3
\.
0
}
{
set
product
"Akbar"
}
{
2
\.
0
}
{
set
product
"Cheddar"
}
}
}
}
if
{
!
[
info
exists versions
(
$product
)]}
{
set product
"Communicator"
}
return
$product
}
proc
pickversion
{}
{
global env versions product FORM
...
...
@@ -131,7 +129,6 @@ proc formvalue {name {default ""}} {
}
GetVersionTable
pickproduct
set
assign_element
[
GeneratePersonInput assigned_to 1
[
formvalue assigned_to
]]
set
cc_element
[
GeneratePeopleInput cc
[
formvalue cc
""
]]
...
...
@@ -151,10 +148,13 @@ puts "
<FORM NAME=enterForm METHOD=POST ACTION=
\"
post_bug.cgi
\"
>
<INPUT TYPE=HIDDEN NAME=bug_status VALUE=NEW>
<INPUT TYPE=HIDDEN NAME=reporter VALUE=
$
COOKIE(Bugzilla_login)>
<INPUT TYPE=HIDDEN NAME=product VALUE=
$product
>
<TABLE CELLSPACING=2 CELLPADDING=0 BORDER=0>
<TR>
<td ALIGN=right valign=top><B>Product:</B></td>
<td>
[
Product_element
$product
]
</td>
<td valign=top>
$product
</td>
</TR>
<TR>
<td ALIGN=right valign=top><B>Version:</B></td>
<td>
[
Version_element
[
pickversion
]
$product
]
</td>
<td align=right valign=top><b>Component:</b></td>
...
...
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