File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Scheduler Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -89,14 +89,18 @@ function Invoke-ListScheduledItems {
8989 }
9090 $Task | Add-Member - NotePropertyName TenantGroupInfo - NotePropertyValue $TenantGroupForDisplay - Force
9191 # Update the tenant to show the group object for proper formatting
92- $Task.Tenant = @ ( $TenantGroupForDisplay )
92+ $Task.Tenant = $TenantGroupForDisplay
9393 }
9494 } catch {
9595 Write-Warning " Failed to parse tenant group information for task $ ( $Task.RowKey ) : $ ( $_.Exception.Message ) "
9696 # Fall back to keeping original tenant value
9797 }
9898 } else {
99- $Task.Tenant = @ ($Task.Tenant )
99+ $Task.Tenant = [PSCustomObject ]@ {
100+ label = $Task.Tenant
101+ value = $Task.Tenant
102+ type = ' Tenant'
103+ }
100104 }
101105
102106 $Task
You can’t perform that action at this time.
0 commit comments