Skip to content

Commit 5ce29a3

Browse files
authored
Merge pull request #480 from KelvinTegelaar/dev
[pull] dev from KelvinTegelaar:dev
2 parents 701e705 + 859b910 commit 5ce29a3

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Modules/CIPPCore/Public/Entrypoints/Activity Triggers/Domain Analyser/Push-DomainAnalyserTenant.ps1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,9 @@ function Push-DomainAnalyserTenant {
100100
$Domain.DkimSelectors = $OldDomain.DkimSelectors
101101
$Domain.MailProviders = $OldDomain.MailProviders
102102
}
103+
# Fix tenant info in the event of a default domain name change in a tenant
104+
$Domain | Add-Member -MemberType NoteProperty -Name 'TenantId' -Value $TenantDomain.Tenant -Force
105+
$Domain | Add-Member -MemberType NoteProperty -Name 'TenantGUID' -Value $TenantDomain.TenantGUID -Force
103106
}
104107
# Return domain object to list
105108
$TenantDomainObjects.Add($Domain)

Modules/CIPPCore/Public/New-CIPPAlertTemplate.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function New-CIPPAlertTemplate {
3131
$Title = "CIPP Alert - Standard Drift Detected for $($Tenant)"
3232
$DataHTML = ($Data | ConvertTo-Html | Out-String).Replace('<table>', ' <table class="table-modern">')
3333
$IntroText = "<p>You've setup your instance to receive alerts when a tenant is drifting away from your standard. This seems to have happened! We've found the following deviations. </p>$dataHTML"
34-
$ButtonUrl = "$CIPPURL/tenant/standards/manage-drift?tenantFilter=$($Tenant)&templateId=$($AuditLogLink)"
34+
$ButtonUrl = "$CIPPURL/tenant/manage/drift?tenantFilter=$($Tenant)&templateId=$($AuditLogLink)"
3535
$ButtonText = 'Investigate and remediate deviations'
3636
$AfterButtonText = 'Click the button above to go to the logbook and investigate the deviations. You can also use the standards page to remediate the deviations.'
3737
}

0 commit comments

Comments
 (0)