Permalink
Browse files

use the processed values instead of those from the XML

Safer, the values we probably need.
  • Loading branch information...
1 parent 83c1443 commit 9bd32eb8b8d226ce18caffcc4a2dc3b85a65e64a @afresh1 committed Aug 13, 2012
Showing with 5 additions and 5 deletions.
  1. +5 −5 rt-ticket-importer
View
@@ -225,14 +225,14 @@ sub import_ticket {
= { read => 1, write => 1, auto => 0 };
$ticketObj->{_AccessibleCache}{LastUpdatedBy}
= { read => 1, write => 1, auto => 0 };
- $ticketObj->SetCreated( $ticket->{Created} );
- $ticketObj->SetCreator( $ticket->{Creator} );
- $ticketObj->SetLastUpdated( $ticket->{LastUpdated} );
- $ticketObj->SetLastUpdatedBy( $ticket->{LastUpdatedBy} );
+ $ticketObj->SetCreated( $t{Created} );
+ $ticketObj->SetCreator( $t{Creator} );
+ $ticketObj->SetLastUpdated( $t{LastUpdated} );
+ $ticketObj->SetLastUpdatedBy( $t{LastUpdatedBy} );
$ticketObj->AddCustomFieldValue(
Field => $cf,
- Value => "[$rtname #$ticket->{id}]"
+ Value => "[$rtname #$t{id}]"
);
foreach my $custom_field ( @{ $ticket->{CustomFields} } ) {

0 comments on commit 9bd32eb

Please sign in to comment.