Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Don't try to process an object we don't have

The most likely reason is that we already did it.

We could store the $obj in the cache instead of just the $new_id
but that would use a LOT more memory for little gain.
  • Loading branch information...
commit fcc9f5ab36ac2a6590fb24309e92e1c6665eda9d 1 parent 828dca5
@afresh1 authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  rt-ticket-importer
View
2  rt-ticket-importer
@@ -153,6 +153,8 @@ sub _ConvertItem {
}
}
+ return $new_id unless $obj;
+
foreach my $key (qw( LastUpdatedBy LastUpdated )) {
my $value = $item->{$key} or next;
$value = ConvertUser($value) if $key eq 'LastUpdatedBy';
Please sign in to comment.
Something went wrong with that request. Please try again.