瀏覽代碼

Hard set NotInvited field

Andrea Fazzi 5 年之前
父節點
當前提交
f76026a4e6
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      orm/teacher.go

+ 3 - 0
orm/teacher.go

@@ -211,6 +211,9 @@ func UpdateTeacher(args map[string]string, r *http.Request) (IDer, error) {
 	// FIXME: Should not be hard set.
 	teacher.(*Teacher).Exclude = false
 
+	// FIXME: Should not be hard set.
+	teacher.(*Teacher).NotInvited = false
+
 	if len(args["DateFrom"]) == 0 {
 		// FIXME: Should not be hard set.
 		teacher.(*Teacher).DateFrom = time.Time{}