Index: content.migrate.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/migrate_extras/content.migrate.inc,v
retrieving revision 1.1.2.2
diff -u -p -r1.1.2.2 content.migrate.inc
--- content.migrate.inc	26 Jan 2010 14:37:23 -0000	1.1.2.2
+++ content.migrate.inc	16 Feb 2010 14:32:20 -0000
@@ -124,7 +124,7 @@ function content_migrate_prepare_node(&$
                   }
                 }
               }
-              break;
+            break;
 
             case 'nodereference':
               // If $value is numeric use it, otherwise
@@ -132,7 +132,11 @@ function content_migrate_prepare_node(&$
               if (intval($value) > 0) {
                 $value = intval($value);
               }
-              break;
+              else {
+                $value = db_result(db_query(db_rewrite_sql("SELECT n.nid FROM {node} n WHERE n.title = '%s'"), $value));
+              }
+            break;
+
 
             case 'userreference':
               // If $value is numeric use it, otherwise
@@ -141,7 +145,7 @@ function content_migrate_prepare_node(&$
                 $value = intval($value);
               }
               else {
-                if (($account = user_load(array('name' => $author['name'])))) {
+                if (($account = user_load(array('name' => $value)))) {
                   $value = $account->uid;
                 }
               }
