Opened 8 years ago

Closed 6 years ago

Removing Hours of a ticket doesn´t recalculate total hours

Reported by: Owned by: anonymous Ryan J Ollos normal TracHoursPlugin major r.barnebeck@… 0.11

Description

When I remove in the hours section an entry from a ticket, the total hours of the ticket are not recalculated in the list view of a ticket query. This case only happens when the removed entry is the only entry for the ticket. After adding new hours again, the total hours are calculated correctly. The calculation is also correct when there are other hours entries left for the ticket.

comment:1 Changed 6 years ago by Ryan J Ollos

Owner: changed from Jeff Hammel to Ryan J Ollos new → assigned

Confirmed with Trac 0.11.8dev-r9998.

comment:2 Changed 6 years ago by Ryan J Ollos

This patch is slightly ugly, but I didn't want to dive into modifying get_all_dict form tracsqlhelper, and am not even sure that function is misbehaving.

comment:3 Changed 6 years ago by Ryan J Ollos

Resolution: → fixed assigned → closed

(In [9572]) Total hours was not being set when last row was removed from the hours worked page. Fixes #4481.

Modify Ticket

Action
as closed The owner will remain Ryan J Ollos.
The resolution will be deleted. Next status will be 'reopened'.