Skip to content

Commit 1027be5

Browse files
fixes illegal name
1 parent 2b7ad0c commit 1027be5

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Tenant/Standards/Invoke-ListStandardsCompare.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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 '*{*') {

Modules/CIPPCore/Public/Set-CIPPStandardsCompareField.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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]) {

0 commit comments

Comments
 (0)