Text field mapper doesn't support FeedsElement.
I mapped SimplePie's enclosure field with simple text field and after the import field is blank.
The reason of this behavior is that text field mapper just ignores all objects rather than to receive value from them.

feeds/mappers/field.inc

if (!is_array($v) && !is_object($v)) {
  $field['und'][$i]['value'] = $v;
}

Comments

Sergii’s picture

Status:Active» Needs review
StatusFileSize
new570 bytes

Add patch.

Sergii’s picture

New patch from module's root folder.

Sergii’s picture

The same behavior for the link field mapper.

Sergii’s picture

Priority:Normal» Major
twistor’s picture

Status:Needs review» Needs work
+++ b/mappers/field.incundefined
@@ -110,6 +110,12 @@ function _field_feeds_set_target($source, $entity, $target, $value, $input_forma
+      $text = $v->getValue();
+      if (is_string($text) && !empty($text)) {
+        $v = $text;

Don't do the is_string() or !empty() check here. It could be any scalar and the subsequent !is_array() and !is_object() checks will do just fine.

twistor’s picture

dupe.

twistor’s picture

Status:Needs work» Patch (to be ported)

committed a version of this to 7.x

http://drupalcode.org/project/feeds.git/commit/1c6777a

twistor’s picture

Version:7.x-2.x-dev» 6.x-1.x-dev