All new accounts created on Gitlab now require administrator approval. If you invite any collaborators, please let Flux staff know so they can approve the accounts.

Commit c11d4464 authored by Leigh B Stoller's avatar Leigh B Stoller

Addendum to commit 70954aec (issue #187).

parent 5e5903db
......@@ -64,6 +64,7 @@ function Do_GetProfile()
#
SPITAJAX_RESPONSE(array('rspec' => $profile->rspec(),
'name' => $profile->name(),
'pid' => $profile->pid(),
'version' => $profile->version(),
'lastused' => $lastused,
'usecount' => $count,
......
......@@ -1110,8 +1110,16 @@ $(function ()
selected_version = profile_blob.version;
amdefault = profile_blob.amdefault;
/*
* Change the project; if the user's project list includes
* the project the profile belongs to, that becomes the default.
*/
if (projlist && _.has(projlist, profile_blob.pid)) {
$('#project_selector #profile_pid').val(profile_blob.pid);
UpdateGroupSelector();
}
CreateAggregateSelectors(selected_rspec);
// Set the default aggregate.
if ($('#profile_where').length) {
// Deselect current option.
......
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