Skip to content

Commit 0e775da

Browse files
authored
Merge pull request #565 from KelvinTegelaar/dev
[pull] dev from KelvinTegelaar:dev
2 parents 3997863 + 38f8f40 commit 0e775da

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Core/Invoke-ExecEditTemplate.ps1

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ function Invoke-ExecEditTemplate {
2020
$Template = Get-CIPPAzDataTableEntity @Table -Filter "PartitionKey eq 'IntuneTemplate' and RowKey eq '$GUID'"
2121
$OriginalJSON = $Template.JSON
2222

23+
$TemplateData = $Template.JSON | ConvertFrom-Json
24+
$TemplateType = $TemplateData.Type
25+
2326
if ($Template.SHA) {
2427
$NewGuid = [guid]::NewGuid().ToString()
2528
} else {
@@ -36,7 +39,7 @@ function Invoke-ExecEditTemplate {
3639
RawJson = $RawJSON
3740
DisplayName = $Request.Body.displayName
3841
Description = $Request.Body.description
39-
templateType = $Template.Type
42+
templateType = $TemplateType
4043
Package = $Template.Package
4144
Headers = $Request.Headers
4245
}

Modules/CIPPCore/Public/TenantGroups/Update-CIPPDynamicTenantGroups.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@ function Update-CIPPDynamicTenantGroups {
198198
$LogicOperator = if ($Group.RuleLogic -eq 'or') { ' -or ' } else { ' -and ' }
199199
$WhereString = $WhereConditions -join $LogicOperator
200200
Write-Information "Evaluating tenants with condition: $WhereString"
201+
Write-LogMessage -API 'TenantGroups' -message "Evaluating tenants for group '$($Group.Name)' with condition: $WhereString" -sev Info
201202

202203
$ScriptBlock = [ScriptBlock]::Create($WhereString)
203204
$MatchingTenants = $TenantObj | Where-Object $ScriptBlock

0 commit comments

Comments
 (0)