File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Entrypoints/HTTP Functions/Tenant/Standards Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,8 @@ Function Invoke-ListStandardsCompare {
1717 $Results | ForEach-Object {
1818 $Object = $_
1919 $Object.PSObject.Properties | ForEach-Object {
20- if ($_.Name -like ' standards.*' ) {
20+ if ($_.Name -like ' standards_*' ) {
21+ $_.Name = $_.Name.replace (' standards_' , ' standards.' )
2122 if ($_.Value -is [System.Boolean ]) {
2223 $_.Value = [bool ]$_.Value
2324 } elseif ($_.Value -like ' *{*' ) {
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ function Set-CIPPStandardsCompareField {
88 $Table = Get-CippTable - tablename ' CippStandardsReports'
99 $TenantName = Get-Tenants | Where-Object - Property defaultDomainName -EQ $Tenant
1010 # if the fieldname does not contain standards. prepend it.
11- $FieldName = $FieldName.replace (' standards.' , ' ' )
11+ $FieldName = $FieldName.replace (' standards.' , ' standards_ ' )
1212 if ($FieldValue -is [System.Boolean ]) {
1313 $fieldValue = [bool ]$FieldValue
1414 } elseif ($FieldValue -is [string ]) {
You can’t perform that action at this time.
0 commit comments