diff options
author | Jesse Vincent <jesse@bestpractical.com> | 2001-06-05 02:56:48 +0400 |
---|---|---|
committer | Jesse Vincent <jesse@bestpractical.com> | 2001-06-05 02:56:48 +0400 |
commit | db7e147016a0042914a264c1dacc7a14caad1919 (patch) | |
tree | c0f5476f2ea6447c3e6bc8b4f3a2da458bf5e8e1 | |
parent | 53645f12f61231a2deb1c9d5c2056cf72738e19e (diff) |
Minor tweak to importer to try even harder to find users in the database before creating new ones.rt-1.3.87
-rwxr-xr-x | Makefile | 2 | ||||
-rw-r--r-- | tools/import-1.0-to-2.0 | 6 |
2 files changed, 5 insertions, 3 deletions
@@ -6,7 +6,7 @@ PERL = /usr/bin/perl RT_VERSION_MAJOR = 1 RT_VERSION_MINOR = 3 -RT_VERSION_PATCH = 86 +RT_VERSION_PATCH = 87 RT_VERSION = $(RT_VERSION_MAJOR).$(RT_VERSION_MINOR).$(RT_VERSION_PATCH) diff --git a/tools/import-1.0-to-2.0 b/tools/import-1.0-to-2.0 index 454e7ae4c1..6d58747e94 100644 --- a/tools/import-1.0-to-2.0 +++ b/tools/import-1.0-to-2.0 @@ -699,14 +699,16 @@ sub MigrateTransactions { if ( $trans_args{'Type'} ) { - # {{{ Figure out who's the transaction actor. create a user if we need to - + # {{{ Figure out the transaction actor. create a user if we need to my $User = new RT::User($RT::SystemUser); if ($row->{'actor'}) { $User->Load( $row->{'actor'} ); unless ($User->Id) { + $User->LoadByEmail($row->{'actor'}); + } + unless ($User->Id) { my $Address = $row->{'actor'}; $Address .= "\@$EMAILDOMAIN" unless $Address =~ /\@/; |