Skip to content

Commit f222a09

Browse files
fix alert comment
1 parent 750df28 commit f222a09

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Modules/CIPPCore/Public/Webhooks/Test-CIPPAuditLogRules.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ function Test-CIPPAuditLogRules {
576576
$ReturnedData = foreach ($item in $ReturnedData) {
577577
$item.CIPPAction = $clause.expectedAction
578578
$item.CIPPClause = $clause.CIPPClause -join ' and '
579-
$item.CIPPAlertComment = $clause.AlertComment
579+
$item | Add-Member -NotePropertyName 'CIPPAlertComment' -NotePropertyValue $clause.AlertComment -Force -ErrorAction SilentlyContinue
580580
$MatchedRules.Add($clause.CIPPClause -join ' and ')
581581
$item
582582
}

0 commit comments

Comments
 (0)