From 2d971f3a05ab3d48ce5b551ff352e5988272e5aa Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 24 Apr 2024 21:00:38 +0200 Subject: [PATCH] Fix regression --- htdocs/projet/class/task.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/projet/class/task.class.php b/htdocs/projet/class/task.class.php index ad44dd8f2fc..7fa2ee883c5 100644 --- a/htdocs/projet/class/task.class.php +++ b/htdocs/projet/class/task.class.php @@ -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();