zoie hai 7 meses
pai
achega
8043d29151
Modificáronse 1 ficheiros con 5 adicións e 8 borrados
  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")