[Rt-commit] [svn] r1348 - rt/branches/3.2-RELEASE/lib/RT
alexmv at pallas.eruditorum.org
alexmv at pallas.eruditorum.org
Wed Aug 18 16:22:43 EDT 2004
Author: alexmv
Date: Wed Aug 18 16:22:42 2004
New Revision: 1348
Modified:
rt/branches/3.2-RELEASE/lib/RT/Ticket_Overlay.pm
Log:
RT-Ticket: 5215
RT-Update: correspond
RT-Status: resolved
* When merging tickets, the resulting ticket's
Time{Estimated,Worked,Left} should be the sum of the fields from
both tickets
Modified: rt/branches/3.2-RELEASE/lib/RT/Ticket_Overlay.pm
==============================================================================
--- rt/branches/3.2-RELEASE/lib/RT/Ticket_Overlay.pm (original)
+++ rt/branches/3.2-RELEASE/lib/RT/Ticket_Overlay.pm Wed Aug 18 16:22:42 2004
@@ -2788,6 +2788,10 @@
}
+ # Update time fields
+ $NewTicket->SetTimeEstimated(($NewTicket->TimeEstimated || 0) + ($self->TimeEstimated || 0));
+ $NewTicket->SetTimeWorked( ($NewTicket->TimeWorked || 0) + ($self->TimeWorked || 0));
+ $NewTicket->SetTimeLeft( ($NewTicket->TimeLeft || 0) + ($self->TimeLeft || 0));
#add all of this ticket's watchers to that ticket.
my $requestors = $self->Requestors->MembersObj;
More information about the Rt-commit
mailing list