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
This commit is contained in:
Joachim Kueter 2026-04-03 03:20:16 +02:00 committed by GitHub
parent 4d9c16e7e0
commit 39ccb1e951
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)) {