File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -276,6 +276,10 @@ func NewTeam(ctx *context.Context) {
276276 ctx .Data ["PageIsOrgTeamsNew" ] = true
277277 ctx .Data ["Team" ] = & org_model.Team {}
278278 ctx .Data ["Units" ] = unit_model .Units
279+ if err := shared_user .LoadHeaderCount (ctx ); err != nil {
280+ ctx .ServerError ("LoadHeaderCount" , err )
281+ return
282+ }
279283 ctx .HTML (http .StatusOK , tplTeamNew )
280284}
281285
@@ -463,6 +467,10 @@ func EditTeam(ctx *context.Context) {
463467 ctx .ServerError ("LoadUnits" , err )
464468 return
465469 }
470+ if err := shared_user .LoadHeaderCount (ctx ); err != nil {
471+ ctx .ServerError ("LoadHeaderCount" , err )
472+ return
473+ }
466474 ctx .Data ["Team" ] = ctx .Org .Team
467475 ctx .Data ["Units" ] = unit_model .Units
468476 ctx .HTML (http .StatusOK , tplTeamNew )
You can’t perform that action at this time.
0 commit comments