diff --git a/models/unit.go b/models/unit.go index a8ddf285da1..697df696bc1 100644 --- a/models/unit.go +++ b/models/unit.go @@ -25,6 +25,11 @@ const ( UnitTypeExternalTracker // 7 ExternalTracker ) +// Value returns integer value for unit type +func (u UnitType) Value() int { + return int(u) +} + func (u UnitType) String() string { switch u { case UnitTypeCode: diff --git a/templates/org/team/new.tmpl b/templates/org/team/new.tmpl index 12cdd697c32..fb79c9b7fba 100644 --- a/templates/org/team/new.tmpl +++ b/templates/org/team/new.tmpl @@ -57,7 +57,7 @@ {{range $t, $unit := $.Units}}
- + {{$.i18n.Tr $unit.DescKey}}