diff options
author | ngourdon <31291059+ngourdon@users.noreply.github.com> | 2019-04-28 01:32:33 +0200 |
---|---|---|
committer | techknowlogick <techknowlogick@gitea.io> | 2019-04-27 19:32:33 -0400 |
commit | 4e311123d8495d1f8b6aa91be7dd58c51d8cda76 (patch) | |
tree | 168f4ed1091e240874dd33b3c33ceda517c1e396 /routers | |
parent | 81059a2567be0cd811ca10e3545282c9aa53276a (diff) | |
download | gitea-4e311123d8495d1f8b6aa91be7dd58c51d8cda76.tar.gz gitea-4e311123d8495d1f8b6aa91be7dd58c51d8cda76.zip |
Fix team edit API panic (#6780)
Diffstat (limited to 'routers')
-rw-r--r-- | routers/api/v1/org/team.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/api/v1/org/team.go b/routers/api/v1/org/team.go index d1b7dfbce8..340dd96c7e 100644 --- a/routers/api/v1/org/team.go +++ b/routers/api/v1/org/team.go @@ -189,7 +189,7 @@ func EditTeam(ctx *context.APIContext, form api.EditTeamOption) { var units = make([]*models.TeamUnit, 0, len(form.Units)) for _, tp := range unitTypes { units = append(units, &models.TeamUnit{ - OrgID: ctx.Org.Organization.ID, + OrgID: ctx.Org.Team.OrgID, Type: tp, }) } |