Skip to content

Commit db91dd0

Browse files
fixes bug weith adding removing locations.
1 parent ee2d048 commit db91dd0

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Tenant/Conditional/Invoke-ExecNamedLocation.ps1

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@ function Invoke-ExecNamedLocation {
1515
$TenantFilter = $Request.Body.tenantFilter ?? $Request.Query.tenantFilter
1616
$NamedLocationId = $Request.Body.namedLocationId ?? $Request.Query.namedLocationId
1717
$Change = $Request.Body.change ?? $Request.Query.change
18-
$Content = $Request.Body.input.value ?? $Request.Query.input.value
18+
$Content = $Request.Body.input ?? $Request.Query.input
19+
#reintroduced because iut can come from autocomplete OR textinput.
20+
if ($content.value) { $content = $content.value }
21+
1922

2023
try {
2124
$Results = Set-CIPPNamedLocation -NamedLocationId $NamedLocationId -TenantFilter $TenantFilter -Change $Change -Content $Content -Headers $Headers

0 commit comments

Comments
 (0)