0
0
mirror of https://github.com/go-gitea/gitea.git synced 2026-05-11 07:05:21 +02:00

update calls to GetRepositoryByName to use new signature

This commit is contained in:
☙◦ The Tablet ❀ GamerGirlandCo ◦❧ 2025-11-22 16:38:52 -05:00
parent 94dc9de95d
commit a30e743e0a
No known key found for this signature in database
GPG Key ID: 924A5F6AF051E87C
2 changed files with 4 additions and 3 deletions

View File

@ -479,7 +479,7 @@ func packageSettingsPostActionLink(ctx *context.Context, form *forms.PackageSett
return
}
repo, err := repo_model.GetRepositoryByName(ctx, pd.Owner.ID, form.RepoName)
repo, err := repo_model.GetRepositoryByName(ctx, pd.Owner.ID, form.RepoGroup, form.RepoName)
if err != nil {
if repo_model.IsErrRepoNotExist(err) {
ctx.JSONError(ctx.Tr("packages.settings.link.repo_not_found", form.RepoName))

View File

@ -432,8 +432,9 @@ func (f *WebauthnDeleteForm) Validate(req *http.Request, errs binding.Errors) bi
// PackageSettingForm form for package settings
type PackageSettingForm struct {
Action string
RepoName string `form:"repo_name"`
Action string
RepoName string `form:"repo_name"`
RepoGroup int64 `form:"repo_group"`
}
// Validate validates the fields