Skip to content

Commit 310c30e

Browse files
Merge pull request KelvinTegelaar#1388 from Ren-Roros-Digital/PhishingSimulations
chore: show PhishingSim current state if false
2 parents be94a7f + b9c1754 commit 310c30e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Modules/CIPPCore/Public/Standards/Invoke-CIPPStandardPhishingSimulations.ps1

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,11 @@ function Invoke-CIPPStandardPhishingSimulations {
167167
If ($StateIsCorrect -eq $true) {
168168
$FieldValue = $true
169169
} Else {
170-
$FieldValue = $CurrentState ? $CurrentState : $false
170+
$FieldValue = [PSCustomObject]@{
171+
Domains = $RuleState.Domains
172+
SenderIpRanges = $RuleState.SenderIpRanges
173+
PhishingSimUrls = $SimUrlState.value
174+
}
171175
}
172176
Set-CIPPStandardsCompareField -FieldName 'standards.PhishingSimulations' -FieldValue $FieldValue -Tenant $Tenant
173177
}

0 commit comments

Comments
 (0)