Commit c117127f authored by Leigh Stoller's avatar Leigh Stoller

Fix bug that prevented single project users from creating a res.

Who are these single project people and are their lives worth living?
parent cd658889
......@@ -125,9 +125,8 @@ $defaults["pid"] = '';
if (ISADMIN() && isset($project)) {
$defaults["pid"] = $project->pid();
}
elseif (count($projlist) == 1) {
list($project, $grouplist) = each($projlist);
$defaults["pid"] = $project;
elseif (count($plist) == 1) {
$defaults["pid"] = $plist[0];
}
echo "<script type='text/plain' id='form-json'>\n";
echo htmlentities(json_encode($defaults)) . "\n";
......
Markdown is supported
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