bug fix to wp backups

This commit is contained in:
usmannasir
2024-09-29 14:35:14 +05:00
parent d72595ecb2
commit 1735553b1f
2 changed files with 158 additions and 189 deletions

View File

@@ -231,9 +231,16 @@ class WebsiteManager:
Data['FileName'] = config['name']
try:
Data['Backuptype'] = config['Backuptype']
if Data['Backuptype'] == 'DataBase Backup' or Data['Backuptype'] == 'Website Backup':
Data['WPsites'] = [WPSites.objects.get(pk=Data['backupobj'].WPSiteID)]
else:
Data['WPsites'] = ACLManager.GetALLWPObjects(currentACL, userID)
except:
Data['Backuptype'] = None
Data['WPsites'] = ACLManager.GetALLWPObjects(currentACL, userID)
Data['WPsites'] = ACLManager.GetALLWPObjects(currentACL, userID)
proc = httpProc(request, 'websiteFunctions/WPRestoreHome.html',
Data, 'createWebsite')
return proc.render()