Bug
When editing a time spent entry, updateTimeSpent() in htdocs/projet/class/task.class.php can write a stale element_datehour to the database.
This bug is partially fixed in newer versions but not fully:
- 22.0: Bug reproduces from the UI whenever you change a date on a time spent entry.
- 23.0/develop: Bug reproduces from the UI only when you also change the task assignment. Additionally, any non-UI caller of updateTimeSpent() is affected.
- All branches: updateTimeSpent() has a weak fallback that should be aligned with addTimeSpent().
Dolibarr Version
22, 23, develop