Browse Source

fix bug

tags/v1.22.1.3
chenyifan01 3 years ago
parent
commit
d2fe0dbb60
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      routers/org/teams.go

+ 1
- 1
routers/org/teams.go View File

@@ -143,7 +143,7 @@ func TeamsRepoAction(ctx *context.Context) {
case "add":
repoName := path.Base(ctx.Query("repo_name"))
var repo *models.Repository
repo, err = models.GetRepositoryByName(ctx.Org.Organization.ID, repoName)
repo, err = models.GetRepositoryByOwnerAndAlias(ctx.Org.Organization.Name, repoName)
if err != nil {
if models.IsErrRepoNotExist(err) {
ctx.Flash.Error(ctx.Tr("org.teams.add_nonexistent_repo"))


Loading…
Cancel
Save