diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2019-04-25 17:00:34 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-25 17:00:34 +0800 |
commit | 65b3f513c3d9d9488475f03408f0ba628363a599 (patch) | |
tree | 6a4e32b8139e8c3333c38ad57452b5bf4f4d438a /templates | |
parent | dabee9b1a4347b0003c36f0f2a0548e5fa4002f7 (diff) | |
download | gitea-65b3f513c3d9d9488475f03408f0ba628363a599.tar.gz gitea-65b3f513c3d9d9488475f03408f0ba628363a599.zip |
fix new team 500 (#6749)
* fix new team 500
* Update models/unit.go
Co-Authored-By: lunny <xiaolunwen@gmail.com>
Diffstat (limited to 'templates')
-rw-r--r-- | templates/org/team/new.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/org/team/new.tmpl b/templates/org/team/new.tmpl index 12cdd697c3..fb79c9b7fb 100644 --- a/templates/org/team/new.tmpl +++ b/templates/org/team/new.tmpl @@ -57,7 +57,7 @@ {{range $t, $unit := $.Units}} <div class="field"> <div class="ui toggle checkbox"> - <input type="checkbox" class="hidden" name="units" value="{{$unit.Type}}"{{if or (eq $.Team.ID 0) ($.Team.UnitEnabled $unit.Type)}} checked{{end}}> + <input type="checkbox" class="hidden" name="units" value="{{$unit.Type.Value}}"{{if or (eq $.Team.ID 0) ($.Team.UnitEnabled $unit.Type)}} checked{{end}}> <label>{{$.i18n.Tr $unit.NameKey}}</label> <span class="help">{{$.i18n.Tr $unit.DescKey}}</span> </div> |