[Bps-public-commit] r17464 - sd/trunk/lib/App/SD/Replica/rt
ruz at bestpractical.com
ruz at bestpractical.com
Tue Dec 30 21:11:52 EST 2008
Author: ruz
Date: Tue Dec 30 21:11:52 2008
New Revision: 17464
Modified:
sd/trunk/lib/App/SD/Replica/rt/PullEncoder.pm
Log:
* translate only defined fields
Modified: sd/trunk/lib/App/SD/Replica/rt/PullEncoder.pm
==============================================================================
--- sd/trunk/lib/App/SD/Replica/rt/PullEncoder.pm (original)
+++ sd/trunk/lib/App/SD/Replica/rt/PullEncoder.pm Tue Dec 30 21:11:52 2008
@@ -97,9 +97,11 @@
}
$ticket->{$_} = $self->unix_time_to_iso( $ticket->{$_} )
- for qw(Created Resolved Told LastUpdated Due Starts Started);
+ for grep defined $ticket->{$_}, qw(Created Resolved Told LastUpdated Due Starts Started);
+
$ticket->{$_} =~ s/ minutes$//
for grep defined $ticket->{$_}, qw(TimeWorked TimeLeft TimeEstimated);
+
$ticket->{'Status'} =~ s/^(resolved|rejected)$/closed/;
# delete undefined and empty fields
More information about the Bps-public-commit
mailing list