Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-stable
Commits
efa0dad1
Commit
efa0dad1
authored
Dec 11, 2003
by
Robert Ricci
Browse files
Fix up and comment the case where the project list is hidden and the
user has only one project.
parent
36d8c25e
Changes
1
Hide whitespace changes
Inline
Side-by-side
www/beginexp.php3
View file @
efa0dad1
...
@@ -115,12 +115,10 @@ function SPITFORM($formfields, $errors)
...
@@ -115,12 +115,10 @@ function SPITFORM($formfields, $errors)
# Select Project
# Select Project
#
#
if
(
isset
(
$view
[
'hide_proj'
])
&&
(
count
(
$projlist
)
==
1
))
{
if
(
isset
(
$view
[
'hide_proj'
])
&&
(
count
(
$projlist
)
==
1
))
{
# Just include the project as a hidden field
# Just include the project as a hidden field - since the user has
if
(
$formfields
[
'project'
])
{
# only a single project, grab that project, which is the first thing
$project
=
$formfields
[
'project'
];
# in $projlist
}
else
{
list
(
$project
)
=
each
(
$projlist
);
list
(
$project
)
=
each
(
$projlist
);
}
echo
"<input type='hidden' name='formfields[exp_pid]' value='
$project
'>
\n
"
;
echo
"<input type='hidden' name='formfields[exp_pid]' value='
$project
'>
\n
"
;
}
else
{
}
else
{
echo
"<tr>
echo
"<tr>
...
...
Write
Preview
Supports
Markdown
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