Reference in New Issue
Block a user
Delete Branch "fix/team-list-and-issue-type-editable"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes two bug-labeled issues.
#720 — Org Teams page shows no teams
routers/web/org/teams.gopopulatedctx.Data["OrgListTeams"], buttemplates/org/team/teams.tmpliterates{{range .Teams}}. That key is read nowhere else, so the list was always empty — page rendered header/nav but no teams, no error. Fixed by writing the canonicalctx.Data["Teams"](same keyorg/home.gouses).#721 — Issue type not editable after creation
templates/repo/issue/sidebar/issue_type.tmplgated its edit form on{{$canModify := and .FieldEditFlags .FieldEditFlags.CustomFields}}, but no handler ever setsFieldEditFlags→ always nil → the type was permanently read-only. Its twinissue_priority.tmplcorrectly usesHasIssuesOrPullsWritePermission; aligned type to match.Verified:
HasIssuesOrPullsWritePermissionis set on the issue view (issue_view.go:450,495), so the dropdown now shows for writers./{id}/custom-typePOST is already protected byreqRepoIssuesOrPullsWriter(web.go:1456) and the handler validates the type belongs to the repo's org — so exposing the form to writers is safe.Note: #721 also requested multi-select types and issue-template linking — those are enhancements beyond the "not editable" bug and are not included here.