Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/bestpractical/rt.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesse Vincent <jesse@bestpractical.com>2001-06-05 02:56:48 +0400
committerJesse Vincent <jesse@bestpractical.com>2001-06-05 02:56:48 +0400
commitdb7e147016a0042914a264c1dacc7a14caad1919 (patch)
treec0f5476f2ea6447c3e6bc8b4f3a2da458bf5e8e1
parent53645f12f61231a2deb1c9d5c2056cf72738e19e (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-xMakefile2
-rw-r--r--tools/import-1.0-to-2.06
2 files changed, 5 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index aa9a5a3615..fe9e88b5dd 100755
--- a/Makefile
+++ b/Makefile
@@ -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 =~ /\@/;