Browse Source

Hard set NotInvited field

Andrea Fazzi 5 years ago
parent
commit
e36cf2d813
1 changed files with 3 additions and 0 deletions
  1. 3 0
      orm/teacher.go

+ 3 - 0
orm/teacher.go

@@ -210,6 +210,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{}