Commit efa0dad1 authored by Robert Ricci's avatar 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
...@@ -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>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment