fix enabling repo packages when projects are off (#20486) (#20488)

tokarchuk/v1.17
Norwin 2 years ago committed by GitHub
parent 2fe0dab2d5
commit 435038b2c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      routers/web/repo/setting.go

@ -474,7 +474,7 @@ func SettingsPost(ctx *context.Context) {
deleteUnitTypes = append(deleteUnitTypes, unit_model.TypeProjects) deleteUnitTypes = append(deleteUnitTypes, unit_model.TypeProjects)
} }
if form.EnablePackages && !unit_model.TypeProjects.UnitGlobalDisabled() { if form.EnablePackages && !unit_model.TypePackages.UnitGlobalDisabled() {
units = append(units, repo_model.RepoUnit{ units = append(units, repo_model.RepoUnit{
RepoID: repo.ID, RepoID: repo.ID,
Type: unit_model.TypePackages, Type: unit_model.TypePackages,

Loading…
Cancel
Save