From 134e55510eda8c3c6d61da18ee97e3243c6e3bc2 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Sat, 23 Feb 2019 00:14:45 +0800 Subject: fix bug when update owner team then visit team's repo return 404 (#6119) --- routers/org/teams.go | 2 -- 1 file changed, 2 deletions(-) (limited to 'routers') diff --git a/routers/org/teams.go b/routers/org/teams.go index 80309dff44..1c09737997 100644 --- a/routers/org/teams.go +++ b/routers/org/teams.go @@ -288,8 +288,6 @@ func EditTeamPost(ctx *context.Context, form auth.CreateTeamForm) { }) } models.UpdateTeamUnits(t, units) - } else { - models.UpdateTeamUnits(t, nil) } if ctx.HasError() { -- cgit v1.2.3