Skip to content

Commit

Permalink
Fix assignment of projects to configuration - same project name was u…
Browse files Browse the repository at this point in the history
…sed for all selected projects. Fix for adding the root item as the same as project - it should not be added at all for now.
  • Loading branch information
krzysztof-lorenc committed May 13, 2019
1 parent ff87a5c commit 7d233cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Soloplan.WhatsON.GUI/Config/Wizard/WizardController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ public IList<ServerProject> GetSelectedProjects()

var serverProjects = new List<ServerProject>();
var checkedProjects = this.Projects.GetChecked();
foreach (var checkedProject in checkedProjects)
foreach (var checkedProject in checkedProjects.Where(p => p.Projects.Count == 0))
{
var newServerProject = new ServerProject();
newServerProject.Address = checkedProject.Address;
Expand Down Expand Up @@ -280,7 +280,7 @@ private void ApplyToConfiguration(ApplicationConfiguration configuration)
throw new InvalidOperationException("Subject does not support assign from server project.");
}

assignanbleServerProject.AssignServerProject(selectedProjects[0], newConnector, this.ProposedServerAddress);
assignanbleServerProject.AssignServerProject(selectedProject, newConnector, this.ProposedServerAddress);
}

if (configurationViewModel.ConfigurationIsModified)
Expand Down

0 comments on commit 7d233cf

Please sign in to comment.