[Rt-commit] r18663 - in rt/3.999/trunk: .
sartak at bestpractical.com
sartak at bestpractical.com
Wed Mar 4 16:40:28 EST 2009
Author: sartak
Date: Wed Mar 4 16:40:27 2009
New Revision: 18663
Modified:
rt/3.999/trunk/ (props changed)
rt/3.999/trunk/lib/RT/ScripAction/CreateTickets.pm
Log:
r80901 at onn: sartak | 2009-03-04 16:40:23 -0500
Throw away bad dates in the create ticket parser
Modified: rt/3.999/trunk/lib/RT/ScripAction/CreateTickets.pm
==============================================================================
--- rt/3.999/trunk/lib/RT/ScripAction/CreateTickets.pm (original)
+++ rt/3.999/trunk/lib/RT/ScripAction/CreateTickets.pm Wed Mar 4 16:40:27 2009
@@ -686,8 +686,8 @@
foreach my $date qw(due starts started resolved) {
next unless $args{$date};
- my $dt = RT::DateTime->new_from_string($args{$date});
- $args{$date} = $dt->iso;
+ my $dt = RT::DateTime->new_from_string(delete $args{$date});
+ $args{$date} = $dt->iso if $dt;
}
$args{'requestor'} ||= $self->ticket_obj->role_group("requestor")->member_emails
More information about the Rt-commit
mailing list