Explorar o código

Hard set NotInvited field

Andrea Fazzi %!s(int64=5) %!d(string=hai) anos
pai
achega
f76026a4e6
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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.
 	// FIXME: Should not be hard set.
 	teacher.(*Teacher).Exclude = false
 	teacher.(*Teacher).Exclude = false
 
 
+	// FIXME: Should not be hard set.
+	teacher.(*Teacher).NotInvited = false
+
 	if len(args["DateFrom"]) == 0 {
 	if len(args["DateFrom"]) == 0 {
 		// FIXME: Should not be hard set.
 		// FIXME: Should not be hard set.
 		teacher.(*Teacher).DateFrom = time.Time{}
 		teacher.(*Teacher).DateFrom = time.Time{}