2 Commits

Author SHA1 Message Date
b4f0fecad2 Merge branch 'main' of https://git.azuze.fr/kawa/Sharepoint-Toolbox
All checks were successful
Release zip package / release (push) Successful in 1s
2026-03-27 09:54:11 +01:00
903fa17f8a Updated workflow to include CSV examples folder 2026-03-27 09:54:01 +01:00

View File

@@ -6057,16 +6057,12 @@ $btnVerOpen.Add_Click({
$btnVerRun.Add_Click({
# --- Gather all selected site URLs ---
$siteUrls = @()
if ($script:_CachedSites -and $script:_CachedSites.Count -gt 0) {
foreach ($s in $script:_CachedSites) {
if ($s.Checked) { $siteUrls += $s.Url }
}
}
if ($siteUrls.Count -eq 0) {
$single = $txtSiteUrl.Text.Trim()
if ($single) { $siteUrls = @($single) }
$siteUrls = if ($script:SelectedSites -and $script:SelectedSites.Count -gt 0) {
@($script:SelectedSites)
} else {
@($txtSiteURL.Text.Trim())
}
$siteUrls = @($siteUrls | Where-Object { $_ })
if ($siteUrls.Count -eq 0) { Write-Log "Site URL required." "Red"; return }
$clientId = $txtClientId.Text.Trim()