Skip to content

Commit c2445ae

Browse files
GiteaBottobiasbp
andauthored
Fix: Allow org team names of length 255 in create team form (#31564) (#31603)
Backport #31564 by @tobiasbp Gitea 1.22.1 was supposed to allow for team names of length 255 (up from 30) after the following PR was merged in: #31410. However, the length of team names was still limited to 30 as described in this issue: #31554. One more change to _gitea_ needs to be made to allow for the longer team names, as there is a 30 character limit here: https://github.com/go-gitea/gitea/blob/2c92c7c5226e29636a1d47a277130f477fa2037b/services/forms/org.go#L65 This PR changes that value to 255. Co-authored-by: Tobias Balle-Petersen <tobias.petersen@unity3d.com>
1 parent 43c63c3 commit c2445ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/forms/org.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ func (f *UpdateOrgSettingForm) Validate(req *http.Request, errs binding.Errors)
6262

6363
// CreateTeamForm form for creating team
6464
type CreateTeamForm struct {
65-
TeamName string `binding:"Required;AlphaDashDot;MaxSize(30)"`
65+
TeamName string `binding:"Required;AlphaDashDot;MaxSize(255)"`
6666
Description string `binding:"MaxSize(255)"`
6767
Permission string
6868
RepoAccess string

0 commit comments

Comments
 (0)