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)
# Select Project
if (isset($view['hide_proj']) && (count($projlist) == 1)) {
# Just include the project as a hidden field
if ($formfields['project']) {
$project = $formfields['project'];
} else {
list($project) = each($projlist);
# Just include the project as a hidden field - since the user has
# only a single project, grab that project, which is the first thing
# in $projlist
list($project) = each($projlist);
echo "<input type='hidden' name='formfields[exp_pid]' value='$project'>\n";
} else {
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