--- feedapi_mapper_nodereference_orig.inc	2009-03-18 13:55:03.000000000 -0400
+++ feedapi_mapper_nodereference_jess.inc	2009-03-18 13:55:02.000000000 -0400
@@ -27,21 +27,18 @@ function nodereference_feedapi_mapper($o
       }
       return FALSE;
     }
-  else if ($op == 'map') {
+    else if ($op == 'map') {
       // Here is where the actual mapping happens.
       // When we are called at this point, $field_name contains the name of the field the user has
       // decided to map to and $field_element is the feed item element the user has decided to map.
       // We just need to put the two things together. The data structure here depends a lot on
-      // CCK. We stick the value in $feed_element into $node->$field_name[0]['value'].
+      // CCK. We stick the value in $feed_element into $node->$field_name[0]['nid'].
       if (!is_array($feed_element)) {
-        $cckfield = content_fields($field_name);
-        // We are checking for nodes that exactly match the string mapped to $feed_element. We
-        // could have checked to see if it was numeric first and do something else
-        $nids = _nodereference_potential_references($cckfield, $feed_element, TRUE);
-        $field[0]['nid'] = (!empty($nids)) ? array_shift(array_keys($nids)) : 0;
+        $field = isset($node->$field_name) ? $node->$field_name : array();
+        $field[0]['nid'] = $feed_element;
         $node->$field_name = $field;
-        return $node;
       }
+      return $node;
     }
   }
 }
