zoie 7 luni în urmă
părinte
comite
8043d29151
1 a modificat fișierele cu 5 adăugiri și 8 ștergeri
  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")