Skip to content

Updating date of existing time-spent entry (for tasks in projects) does not work #37677

@priojk

Description

@priojk

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

Metadata

Metadata

Assignees

Labels

BugThis is a bug (something does not work as expected)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions