zoie vor 8 Monaten
Ursprung
Commit
8043d29151
1 geänderte Dateien mit 5 neuen und 8 gelöschten Zeilen
  1. 5 8
      controllers/Project.go

+ 5 - 8
controllers/Project.go

@@ -1056,15 +1056,12 @@ func (c *ProjectController) Project_Edit() {
 		project.T_reality_cycle = float32(T_reality_cycle)
 		clos = append(clos, "T_reality_cycle")
 	}
-	if T_advance_day > 0 {
-		project.T_advance_day = float32(T_advance_day)
-		clos = append(clos, "T_advance_day")
-	}
-	if T_bonus > 0 {
-		project.T_bonus = float32(T_bonus)
-		clos = append(clos, "T_bonus")
 
-	}
+	project.T_advance_day = float32(T_advance_day)
+	clos = append(clos, "T_advance_day")
+	project.T_bonus = float32(T_bonus)
+	clos = append(clos, "T_bonus")
+
 	if T_Perf > 0 {
 		project.T_Perf = float32(T_Perf)
 		clos = append(clos, "T_Perf")