Fix regression

This commit is contained in:
Laurent Destailleur
2024-04-24 21:00:38 +02:00
parent 2768d80b9b
commit 2d971f3a05

View File

@@ -384,8 +384,8 @@ class Task extends CommonObject
$sql .= " dateo=".($this->date_start != '' ? "'".$this->db->idate($this->date_start)."'" : 'null').",";
$sql .= " datee=".($this->date_end != '' ? "'".$this->db->idate($this->date_end)."'" : 'null').",";
$sql .= " progress=".(($this->progress != '' && $this->progress >= 0) ? $this->progress : 'null').",";
$sql .= " rang=".((!empty($this->rang)) ? $this->rang : "0");
$sql .= " priority=".((!empty($this->priority)) ? $this->priority : "0");
$sql .= " rang=".((!empty($this->rang)) ? ((int) $this->rang) : "0").",";
$sql .= " priority=".((!empty($this->priority)) ? ((int) $this->priority) : "0");
$sql .= " WHERE rowid=".((int) $this->id);
$this->db->begin();