Browse Source

提交代码

pull/1425/head
ychao_1983 3 years ago
parent
commit
b8ace56610
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      routers/repo/course.go

+ 4
- 0
routers/repo/course.go View File

@@ -34,6 +34,10 @@ func CreateCoursePost(ctx *context.Context, form auth.CreateCourseForm) {
return
}

org, _ := models.GetUserByName(setting.Course.OrgName)

ctx.Data["Owner"] = org

var topics = make([]string, 0)
var topicsStr = strings.TrimSpace(form.Topics)
if len(topicsStr) > 0 {


Loading…
Cancel
Save