projects
/
project/feeds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
2fec4a0
)
Fix emfield mapper not accepting FeedsElement objects.
author
Alex Barth
Wed, 22 Sep 2010 00:03:30 +0000 (
00:03
+0000)
committer
Alex Barth
Wed, 22 Sep 2010 00:03:30 +0000 (
00:03
+0000)
CHANGELOG.txt
patch
|
blob
|
blame
|
history
mappers/emfield.inc
patch
|
blob
|
blame
|
history
diff --git
a/CHANGELOG.txt
b/CHANGELOG.txt
index
87d9157
..
aeb0437
100644
(file)
--- 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
(file)
--- 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;
}