Commit b80ae038 authored by Leigh Stoller's avatar Leigh Stoller

Minor bug fix.

parent d46e65ca
......@@ -143,7 +143,9 @@ if (! isset($create)) {
$defaults["dataset_am"] = '';
# Default project.
if (count($projlist) == 1) {
$defaults["dataset_pid"] = $projlist[0];
list($project, $grouplist) = each($projlist);
$defaults["dataset_pid"] = $project;
reset($projlist);
}
SPITFORM($defaults, $errors);
......
......@@ -20,7 +20,6 @@
<input name="dataset_pid" readonly
id="dataset_pid"
value="<%- formfields.dataset_pid %>"
<% if (editing) { %> readonly <% } %>
class="form-control format-me"
data-label="Project"
data-key="dataset_pid">
......
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