Commit bea5a02c authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Minor bug fixes for template conversion.

parent d8f8417b
......@@ -247,6 +247,7 @@ if (! isset($create)) {
if (count($projlist) == 1) {
$defaults["profile_pid"] = $projlist[0];
}
$defaults["profile_who"] = "shared";
}
SPITFORM($defaults, $errors);
return;
......
......@@ -65,7 +65,13 @@
data-key="profile_pid"
placeholder='Please Select'>
<% _.each(projects, function(name) { %>
<option value='<%= name %>'><%= name %></option>
<option
<% if (_.has(formfields, 'profile_pid') &&
formfields.profile_pid == name) { %>
selected
<% } %>
value='<%= name %>'><%= name %>
</option>
<% }); %>
</select>
<% } %>
......
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