summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG.txt5
-rw-r--r--mappers/emfield.inc3
2 files changed, 8 insertions, 0 deletions
diff --git a/CHANGELOG.txt b/CHANGELOG.txt
index 87d9157..aeb0437 100644
--- a/CHANGELOG.txt
+++ b/CHANGELOG.txt
@@ -1,5 +1,10 @@
// $Id$
+Feeds 6.x 1.0 xxxxxxxxxxxxxxxxxx
+--------------------------------
+
+- Fix emfield mapper not accepting FeedsElement objects.
+
Feeds 6.x 1.0 Beta 7, 2010-09-17
--------------------------------
diff --git a/mappers/emfield.inc b/mappers/emfield.inc
index 2c59bce..82c997e 100644
--- a/mappers/emfield.inc
+++ b/mappers/emfield.inc
@@ -45,6 +45,9 @@ function emfield_feeds_set_target(&$node, $target, $value) {
if (is_array($value)) {
$i = 0;
foreach ($value as $v) {
+ if ($v instanceof FeedsElement) {
+ $field[$i]['embed'] = (string)$v;
+ }
if (!is_array($v) && !is_object($v)) {
$field[$i]['embed'] = $v;
}