Modify

Opened 6 years ago

Closed 4 years ago

#4481 closed defect (fixed)

Removing Hours of a ticket doesn´t recalculate total hours

Reported by: anonymous Owned by: rjollos
Priority: normal Component: TracHoursPlugin
Severity: major Keywords:
Cc: r.barnebeck@… Trac Release: 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.

Attachments (2)

query.png (23.2 KB) - added by rjollos 4 years ago.
hours.png (23.6 KB) - added by rjollos 4 years ago.

Download all attachments as: .zip

Change History (5)

comment:1 Changed 4 years ago by rjollos

  • Owner changed from k0s to rjollos
  • Status changed from new to assigned

Confirmed with Trac 0.11.8dev-r9998.

Changed 4 years ago by rjollos

Changed 4 years ago by rjollos

comment:2 Changed 4 years ago by rjollos

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 4 years ago by rjollos

  • Resolution set to fixed
  • Status changed from assigned to closed

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

Add Comment

Modify Ticket

Action
as closed The owner will remain rjollos.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.