diff options
-rw-r--r-- | CHANGELOG.md | 1 | ||||
-rw-r--r-- | internal/context/context.go | 2 | ||||
-rw-r--r-- | internal/db/org_team.go | 2 |
3 files changed, 3 insertions, 2 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 8477051b..2a7ce2b7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -56,6 +56,7 @@ All notable changes to Gogs are documented in this file. - Private repositories are hidden in the organization's view. [#5869](https://github.com/gogs/gogs/issues/5869) - Server error when changing email address in user settings page. [#5899](https://github.com/gogs/gogs/issues/5899) - Fall back to use RFC 3339 as time layout when misconfigured. [#6098](https://github.com/gogs/gogs/issues/6098) +- Unable to update team with server error. [#6185](https://github.com/gogs/gogs/issues/6185) - Webhooks are not fired after push when `[service] REQUIRE_SIGNIN_VIEW = true`. ### Removed diff --git a/internal/context/context.go b/internal/context/context.go index a34398a2..d05767ba 100644 --- a/internal/context/context.go +++ b/internal/context/context.go @@ -179,7 +179,7 @@ func (c *Context) NotFound() { // Error renders the 500 page. func (c *Context) Error(err error, msg string) { - log.ErrorDepth(5, "%s: %v", msg, err) + log.ErrorDepth(4, "%s: %v", msg, err) c.Title("status.internal_server_error") diff --git a/internal/db/org_team.go b/internal/db/org_team.go index 9daca9e7..b2d6fd56 100644 --- a/internal/db/org_team.go +++ b/internal/db/org_team.go @@ -348,7 +348,7 @@ func UpdateTeam(t *Team, authChanged bool) (err error) { t.LowerName = strings.ToLower(t.Name) existingTeam := new(Team) - has, err := x.Where("org_id=?", t.OrgID).And("lower_name=?", t.LowerName).And("id!=?", t.ID).Get(&existingTeam) + has, err := x.Where("org_id=?", t.OrgID).And("lower_name=?", t.LowerName).And("id!=?", t.ID).Get(existingTeam) if err != nil { return err } else if has { |