Skip to content

Commit b0a5efb

Browse files
authored
Merge pull request #404 from KelvinTegelaar/dev
[pull] dev from KelvinTegelaar:dev
2 parents 0703cee + 887862f commit b0a5efb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Settings/Invoke-ExecRestoreBackup.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ function Invoke-ExecRestoreBackup {
1717

1818
if ($Request.Body.BackupName -like 'CippBackup_*') {
1919
$Table = Get-CippTable -tablename 'CIPPBackup'
20-
$Backup = Get-CippAzDataTableEntity @Table -Filter "RowKey eq '$($Request.Body.BackupName)'"
20+
$Backup = Get-CippAzDataTableEntity @Table -Filter "RowKey eq '$($Request.Body.BackupName)' or OriginalEntityId eq '$($Request.Body.BackupName)'"
2121
if ($Backup) {
2222
$BackupData = $Backup.Backup | ConvertFrom-Json -ErrorAction SilentlyContinue | Select-Object * -ExcludeProperty ETag, Timestamp
2323
$BackupData | ForEach-Object {

0 commit comments

Comments
 (0)