Skip to content

Commit d7a81c7

Browse files
authored
Merge pull request #180 from KelvinTegelaar/dev
[pull] dev from KelvinTegelaar:dev
2 parents 7bdd521 + 2f8da33 commit d7a81c7

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Email-Exchange/Transport/Invoke-AddExConnector.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ Function Invoke-AddExConnector {
1616

1717

1818
$ConnectorType = ($Request.Body.PowerShellCommand | ConvertFrom-Json).cippConnectorType
19-
$RequestParams = $Request.Body.PowerShellCommand | ConvertFrom-Json | Select-Object -Property * -ExcludeProperty GUID, cippConnectorType, comments
20-
19+
$RequestParams = $Request.Body.PowerShellCommand | ConvertFrom-Json | Select-Object -Property * -ExcludeProperty GUID, cippConnectorType, SenderRewritingEnabled
20+
if ($RequestParams.comment) { $RequestParams.comment = Get-CIPPTextReplacement -Text $RequestParams.comment -TenantFilter $Tenant } else { $RequestParams | Add-Member -NotePropertyValue 'no comment' -NotePropertyName comment -Force }
2121
$Tenants = ($Request.Body.selectedTenants).value
2222
$Result = foreach ($TenantFilter in $Tenants) {
2323
try {

Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Email-Exchange/Transport/Invoke-AddExConnectorTemplate.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Function Invoke-AddExConnectorTemplate {
2020
$GUID = (New-Guid).GUID
2121
$Select = if ($Request.Body.cippconnectortype -eq 'outbound') {
2222
@(
23-
'name', 'AllAcceptedDomains', 'CloudServicesMailEnabled', 'Comment', 'Confirm', 'ConnectorSource', 'ConnectorType', 'Enabled', 'IsTransportRuleScoped', 'RecipientDomains', 'RouteAllMessagesViaOnPremises', 'SenderRewritingEnabled', 'SmartHosts', 'TestMode', 'TlsDomain', 'TlsSettings', 'UseMXRecord'
23+
'name', 'AllAcceptedDomains', 'CloudServicesMailEnabled', 'Comment', 'Confirm', 'ConnectorSource', 'ConnectorType', 'Enabled', 'IsTransportRuleScoped', 'RecipientDomains', 'RouteAllMessagesViaOnPremises', 'SmartHosts', 'TestMode', 'TlsDomain', 'TlsSettings', 'UseMXRecord'
2424
)
2525
} else {
2626
@(

Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Identity/Administration/Groups/Invoke-AddGroupTemplate.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Function Invoke-AddGroupTemplate {
1717
if (!$Request.body.displayname) { throw 'You must enter a displayname' }
1818

1919
$object = [PSCustomObject]@{
20-
Displayname = $request.body.displayname
20+
Displayname = $request.body.displayName
2121
Description = $request.body.description
2222
groupType = $request.body.groupType
2323
MembershipRules = $request.body.membershipRules

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ function Invoke-CIPPStandardExConnector {
1515
$Filter = "PartitionKey eq 'ExConnectorTemplate' and RowKey eq '$($Template.value)'"
1616
$connectorType = (Get-AzDataTableEntity @Table -Filter $Filter).direction
1717
$RequestParams = (Get-AzDataTableEntity @Table -Filter $Filter).JSON | ConvertFrom-Json
18+
if($RequestParams.comment) { $RequestParams.comment = Get-CIPPTextReplacement -Text $RequestParams.comment -TenantFilter $Tenant } else { $RequestParams | Add-Member -NotePropertyValue "no comment" -NotePropertyName comment -Force }
1819
$Existing = New-ExoRequest -ErrorAction SilentlyContinue -tenantid $Tenant -cmdlet "Get-$($ConnectorType)connector" | Where-Object -Property Identity -EQ $RequestParams.name
1920
if ($Existing) {
2021
$RequestParams | Add-Member -NotePropertyValue $Existing.Identity -NotePropertyName Identity -Force

0 commit comments

Comments
 (0)