[Bps-public-commit] r8837 - rt2-to-rt3/trunk

falcone at bestpractical.com falcone at bestpractical.com
Thu Aug 30 13:48:54 EDT 2007


Author: falcone
Date: Thu Aug 30 13:48:53 2007
New Revision: 8837

Modified:
   rt2-to-rt3/trunk/   (props changed)
   rt2-to-rt3/trunk/dumpfile-to-rt-3.0

Log:
 r24260 at ketch:  falcone | 2007-08-30 13:45:49 -0400
 * handle system/nobody more intelligently


Modified: rt2-to-rt3/trunk/dumpfile-to-rt-3.0
==============================================================================
--- rt2-to-rt3/trunk/dumpfile-to-rt-3.0	(original)
+++ rt2-to-rt3/trunk/dumpfile-to-rt-3.0	Thu Aug 30 13:48:53 2007
@@ -90,6 +90,16 @@
         $user->{'Name'} = "Unnamed user " . $user->{'id'} unless ( $user->{'Name'} );
         print "Checking user " . $user->{'Name'} . "\n";
 
+        if ( $user->{'Name'} eq 'Nobody' ) {
+            $user_map->{ $user->{'id'} } = $RT::Nobody->Id;
+            next;
+        }
+
+        if ( $user->{'Name'} eq 'RT_System' ) {
+            $user_map->{ $user->{'id'} } = $RT::SystemUser->Id;
+            next;
+        }
+
         my $obj = load_user( $user->{'Name'} );
         if ( !$obj->Id && $user->{'EmailAddress'} ) {
             $obj = load_user( $user->{'EmailAddress'} );



More information about the Bps-public-commit mailing list