From 39ccb1e951a09b649b6bfe39d83bcb19593abe1e Mon Sep 17 00:00:00 2001 From: Joachim Kueter Date: Fri, 3 Apr 2026 03:20:16 +0200 Subject: [PATCH] Fix #37677 (#37678) Updating date in existing time spent entry does not change date if done via UI in v22. In v23+ changing date alone via UI works, but when also changing task at same time, date will not get changed without this fix. See description in #37677 --- htdocs/projet/class/task.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/projet/class/task.class.php b/htdocs/projet/class/task.class.php index d3232461071..767edcc8caf 100644 --- a/htdocs/projet/class/task.class.php +++ b/htdocs/projet/class/task.class.php @@ -2079,7 +2079,7 @@ class Task extends CommonObjectLine } // Clean parameters - if (empty($this->timespent_datehour)) { + if (empty($this->timespent_datehour) || ($this->timespent_date != $this->timespent_datehour)) { $this->timespent_datehour = $this->timespent_date; } if (isset($this->timespent_note)) {