CP-18421: Use host.updates instead of host.patches

Showing relevant Pool_updates instead of Pool_patches on General tab

Signed-off-by: Gabor Apati-Nagy <gabor.apati-nagy@citrix.com>
This commit is contained in:
Gabor Apati-Nagy 2016-10-03 14:19:32 +01:00
parent e648868f6e
commit 1750c47de9

View File

@ -1646,8 +1646,16 @@ namespace XenAdmin.TabPages
{
List<string> result = new List<string>();
foreach (Pool_patch patch in host.AppliedPatches())
result.Add(patch.Name);
if (Helpers.ElyOrGreater(host))
{
foreach (var update in host.AppliedUpdates())
result.Add(update.Name);
}
else
{
foreach (Pool_patch patch in host.AppliedPatches())
result.Add(patch.Name);
}
result.Sort(StringUtility.NaturalCompare);