RDS collections namig fixes
This commit is contained in:
parent
c341c7f58e
commit
f19ca9c8c5
8 changed files with 58 additions and 32 deletions
|
@ -271,10 +271,9 @@ namespace WebsitePanel.EnterpriseServer
|
|||
}
|
||||
|
||||
var rds = GetRemoteDesktopServices(GetRemoteDesktopServiceID(org.PackageId));
|
||||
|
||||
rds.CreateCollection(org.OrganizationId, collection);
|
||||
|
||||
collection.Id = DataProvider.AddRDSCollection(itemId, collection.Name, collection.Description);
|
||||
collection.Name = GetFormattedCollectionName(collection.DisplayName, org.OrganizationId);
|
||||
rds.CreateCollection(org.OrganizationId, collection);
|
||||
collection.Id = DataProvider.AddRDSCollection(itemId, collection.Name, collection.Description, collection.DisplayName);
|
||||
|
||||
foreach (var server in collection.Servers)
|
||||
{
|
||||
|
@ -1247,5 +1246,10 @@ namespace WebsitePanel.EnterpriseServer
|
|||
|
||||
return rds;
|
||||
}
|
||||
|
||||
private static string GetFormattedCollectionName(string displayName, string organizationId)
|
||||
{
|
||||
return string.Format("{0}-{1}", organizationId, displayName.Replace(" ", "_"));
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue