diff --git a/backend/app/service/backup_website.go b/backend/app/service/backup_website.go index 36f7f14e1..e3461d7bd 100644 --- a/backend/app/service/backup_website.go +++ b/backend/app/service/backup_website.go @@ -250,18 +250,18 @@ func checkValidOfWebsite(oldWebsite, website *model.Website) error { return buserr.WithDetail(constant.ErrBackupMatch, fmt.Sprintf("oldName: %s, oldType: %v", oldWebsite.Alias, oldWebsite.Type), nil) } if oldWebsite.AppInstallID != 0 { - _, err := appInstallRepo.GetFirst(commonRepo.WithByID(website.AppInstallID)) + _, err := appInstallRepo.GetFirst(commonRepo.WithByID(oldWebsite.AppInstallID)) if err != nil { return buserr.WithDetail(constant.ErrBackupMatch, "app", nil) } } if oldWebsite.RuntimeID != 0 { - if _, err := runtimeRepo.GetFirst(commonRepo.WithByID(website.RuntimeID)); err != nil { + if _, err := runtimeRepo.GetFirst(commonRepo.WithByID(oldWebsite.RuntimeID)); err != nil { return buserr.WithDetail(constant.ErrBackupMatch, "runtime", nil) } } if oldWebsite.WebsiteSSLID != 0 { - if _, err := websiteSSLRepo.GetFirst(commonRepo.WithByID(website.WebsiteSSLID)); err != nil { + if _, err := websiteSSLRepo.GetFirst(commonRepo.WithByID(oldWebsite.WebsiteSSLID)); err != nil { return buserr.WithDetail(constant.ErrBackupMatch, "ssl", nil) } } diff --git a/frontend/src/views/website/runtime/php/edit/index.vue b/frontend/src/views/website/runtime/php/edit/index.vue index 2fca7cefc..220e01362 100644 --- a/frontend/src/views/website/runtime/php/edit/index.vue +++ b/frontend/src/views/website/runtime/php/edit/index.vue @@ -9,6 +9,7 @@ allow-create default-first-option @change="updateParam" + clearable >