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
ea9345d6
Commit
ea9345d6
authored
Nov 19, 2002
by
bbaetz%student.usyd.edu.au
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 179206 - enter_bug isn't picking up version from URL
patch by GavinS <bugzilla@chimpychompy.org>, r=bbaetz a=justdave
parent
f45790a7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
enter_bug.cgi
enter_bug.cgi
+9
-6
No files found.
enter_bug.cgi
View file @
ea9345d6
...
...
@@ -281,15 +281,18 @@ $default{'rep_platform'} = pickplatform();
$vars
->
{
'op_sys'
}
=
\
@legal_opsys
;
$default
{
'op_sys'
}
=
pickos
();
# Posting a bug sets a cookie for the current version, if one exists. Else,
# the default version is the last one in the list (hopefully the latest one).
# Eventually maybe each product should have a "current version" parameter.
# 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
# version is the last one in the list (hopefully the latest one).
# Eventually maybe each product should have a "current version"
# parameter.
$vars
->
{
'version'
}
=
$::versions
{
$product
}
||
[]
;
if
(
exists
$::COOKIE
{
"VERSION-$product"
}
&&
if
(
formvalue
(
'version'
))
{
$default
{
'version'
}
=
formvalue
(
'version'
);
}
elsif
(
exists
$::COOKIE
{
"VERSION-$product"
}
&&
lsearch
(
$vars
->
{
'version'
},
$::COOKIE
{
"VERSION-$product"
})
!=
-
1
)
{
$default
{
'version'
}
=
$::COOKIE
{
"VERSION-$product"
};
}
elsif
(
formvalue
(
'version'
))
{
$default
{
'version'
}
=
formvalue
(
'version'
);
}
else
{
$default
{
'version'
}
=
$vars
->
{
'version'
}
->
[
$#
{
$vars
->
{
'version'
}}];
}
...
...
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