[BUG] Teams page not showing teams in organization #720

Closed
opened 2026-07-01 05:08:45 +00:00 by jmiller · 2 comments
Owner

Bug Description

In organization page Teams tab is not showing listed teams.

Steps to Reproduce

  1. Go to 'Organization Profile'
  2. Click on 'Teams'
  3. No visible errors page shows header and navigation but no listing.

Expected Behavior

A list of teams

Actual Behavior

No visible errors page shows header and navigation but no listing.

## Bug Description In organization page Teams tab is not showing listed teams. ## Steps to Reproduce 1. Go to 'Organization Profile' 2. Click on 'Teams' 4. No visible errors page shows header and navigation but no listing. ## Expected Behavior A list of teams ## Actual Behavior No visible errors page shows header and navigation but no listing.
jmiller added the bug label 2026-07-01 05:08:45 +00:00
Author
Owner

Branch created: feature/720-bug-teams-page-not-showing-teams-in-orga

git fetch origin
git checkout feature/720-bug-teams-page-not-showing-teams-in-orga
Branch created: [`feature/720-bug-teams-page-not-showing-teams-in-orga`](https://git.mokoconsulting.tech/MokoConsulting/MokoGitea-Fork/src/branch/feature/720-bug-teams-page-not-showing-teams-in-orga) ```bash git fetch origin git checkout feature/720-bug-teams-page-not-showing-teams-in-orga ```
jmiller started working 2026-07-01 05:09:54 +00:00
jmiller worked for 88 hours 5 minutes 2026-07-04 21:15:07 +00:00
Author
Owner

Fixed in PR #726 (merged to main).

Root cause: the org Teams handler (routers/web/org/teams.go) populated ctx.Data["OrgListTeams"], but the template (templates/org/team/teams.tmpl) iterates {{range .Teams}}. Nothing read OrgListTeams, so the list was always empty — the page rendered header/nav but no teams and no error. Now writes the canonical ctx.Data["Teams"] (the same key org/home.go uses).

Fixed in PR #726 (merged to `main`). Root cause: the org Teams handler (`routers/web/org/teams.go`) populated `ctx.Data["OrgListTeams"]`, but the template (`templates/org/team/teams.tmpl`) iterates `{{range .Teams}}`. Nothing read `OrgListTeams`, so the list was always empty — the page rendered header/nav but no teams and no error. Now writes the canonical `ctx.Data["Teams"]` (the same key `org/home.go` uses).
Sign in to join this conversation.
Priority Medium
Type Feature
1 Participants
Notifications
Total Time Spent: 88 hours 5 minutes
jmiller
88 hours 5 minutes
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: MokoConsulting/MokoGIT#720