3.3.3
Fixed displayName missing bug
This commit is contained in:
@@ -481,31 +481,7 @@ function Get-GraphObjects
|
|||||||
$retObjects = $graphObjects
|
$retObjects = $graphObjects
|
||||||
}
|
}
|
||||||
|
|
||||||
return (Add-GraphObectProperties $retObjects $objectType $property $SortProperty)
|
return (Add-GraphObectProperties $retObjects $objectType $property $exclude $SortProperty)
|
||||||
|
|
||||||
$objects = @()
|
|
||||||
|
|
||||||
foreach($graphObject in $retObjects)
|
|
||||||
{
|
|
||||||
$params = @{}
|
|
||||||
if($property) { $params.Add("Property", $property) }
|
|
||||||
if($exclude) { $params.Add("ExcludeProperty", $exclude) }
|
|
||||||
foreach($objTmp in ($graphObject | Select-Object @params))
|
|
||||||
{
|
|
||||||
$objTmp | Add-Member -NotePropertyName "IsSelected" -NotePropertyValue $false
|
|
||||||
$objTmp | Add-Member -NotePropertyName "Object" -NotePropertyValue $graphObject
|
|
||||||
$objTmp | Add-Member -NotePropertyName "ObjectType" -NotePropertyValue $objectType
|
|
||||||
$objects += $objTmp
|
|
||||||
}
|
|
||||||
}
|
|
||||||
$property = "IsSelected",$property
|
|
||||||
|
|
||||||
if($objects.Count -gt 0 -and $SortProperty -and ($objects[0] | GM -MemberType NoteProperty -Name $SortProperty))
|
|
||||||
{
|
|
||||||
$objects = $objects | sort -Property $SortProperty
|
|
||||||
}
|
|
||||||
|
|
||||||
$objects
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function Add-GraphObectProperties
|
function Add-GraphObectProperties
|
||||||
@@ -515,7 +491,7 @@ function Add-GraphObectProperties
|
|||||||
[Array]
|
[Array]
|
||||||
$property = $null,
|
$property = $null,
|
||||||
[Array]
|
[Array]
|
||||||
$exclude,
|
$exclude = $null,
|
||||||
$SortProperty = "displayName")
|
$SortProperty = "displayName")
|
||||||
|
|
||||||
if($property -isnot [Object[]]) { $property = @('displayName', 'description', 'id')}
|
if($property -isnot [Object[]]) { $property = @('displayName', 'description', 'id')}
|
||||||
@@ -544,7 +520,6 @@ function Add-GraphObectProperties
|
|||||||
$objects += $objTmp
|
$objects += $objTmp
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$property = "IsSelected",$property
|
|
||||||
|
|
||||||
if($objects.Count -gt 0 -and $SortProperty -and ($objects[0] | GM -MemberType NoteProperty -Name $SortProperty))
|
if($objects.Count -gt 0 -and $SortProperty -and ($objects[0] | GM -MemberType NoteProperty -Name $SortProperty))
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,12 @@
|
|||||||
# Release Notes
|
# Release Notes
|
||||||
|
|
||||||
|
## 3.3.3 - 2021-12-15
|
||||||
|
|
||||||
|
**Fixes**
|
||||||
|
|
||||||
|
- Fixed issue where displayName was missing in object list<br />
|
||||||
|
Thank you Jason!
|
||||||
|
|
||||||
## 3.3.2 - 2021-12-14
|
## 3.3.2 - 2021-12-14
|
||||||
|
|
||||||
**New features**
|
**New features**
|
||||||
|
|||||||
Reference in New Issue
Block a user