File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Core Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -20,12 +20,12 @@ function Invoke-ExecSetPackageTag {
2020 if ($Remove -eq $true ) {
2121 # Remove package tag by setting it to null/empty
2222 $PackageValue = $null
23- $LogMessage = " Successfully removed package tag from template with GUID"
24- $SuccessMessage = " Successfully removed package tag from template(s)"
23+ $LogMessage = ' Successfully removed package tag from template with GUID'
24+ $SuccessMessage = ' Successfully removed package tag from template(s)'
2525 } else {
2626 # Add package tag (existing logic)
27- $PackageValue = $Request.body.Package | Select-Object - First 1
28- $LogMessage = " Successfully updated template with GUID"
27+ $PackageValue = [ string ]( $Request.body.Package | Select-Object - First 1 )
28+ $LogMessage = ' Successfully updated template with GUID'
2929 $SuccessMessage = " Successfully updated template(s) with package tag: $PackageValue "
3030 }
3131
You can’t perform that action at this time.
0 commit comments