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) {
276
276
ctx .Data ["PageIsOrgTeamsNew" ] = true
277
277
ctx .Data ["Team" ] = & org_model.Team {}
278
278
ctx .Data ["Units" ] = unit_model .Units
279
+ if err := shared_user .LoadHeaderCount (ctx ); err != nil {
280
+ ctx .ServerError ("LoadHeaderCount" , err )
281
+ return
282
+ }
279
283
ctx .HTML (http .StatusOK , tplTeamNew )
280
284
}
281
285
@@ -463,6 +467,10 @@ func EditTeam(ctx *context.Context) {
463
467
ctx .ServerError ("LoadUnits" , err )
464
468
return
465
469
}
470
+ if err := shared_user .LoadHeaderCount (ctx ); err != nil {
471
+ ctx .ServerError ("LoadHeaderCount" , err )
472
+ return
473
+ }
466
474
ctx .Data ["Team" ] = ctx .Org .Team
467
475
ctx .Data ["Units" ] = unit_model .Units
468
476
ctx .HTML (http .StatusOK , tplTeamNew )
You can’t perform that action at this time.
0 commit comments