Modify

Opened 8 years ago

Closed 6 years ago

#4481 closed defect (fixed)

Removing Hours of a ticket doesn´t recalculate total hours

Reported by: anonymous Owned by: Ryan J Ollos
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 Ryan J Ollos 6 years ago.
hours.png (23.6 KB) - added by Ryan J Ollos 6 years ago.

Download all attachments as: .zip

Change History (5)

comment:1 Changed 6 years ago by Ryan J Ollos

Owner: changed from Jeff Hammel to Ryan J Ollos
Status: newassigned

Confirmed with Trac 0.11.8dev-r9998.

Changed 6 years ago by Ryan J Ollos

Attachment: query.png added

Changed 6 years ago by Ryan J Ollos

Attachment: hours.png added

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
Status: assignedclosed

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

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Ryan J Ollos.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


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

 
Note: See TracTickets for help on using tickets.