Skip to content
Snippets Groups Projects
Commit c12e562b authored by Alex Barth's avatar Alex Barth
Browse files

#878002 Will White, David Goode: Support multiple sources per mapping target in FeedsDataProcessor.

parent 060608d6
No related branches found
No related tags found
No related merge requests found
......@@ -3,6 +3,8 @@
Feeds 6.x 1.0 XXXXXXXXXXXXXXXXXX
--------------------------------
- #878002 Will White, David Goode: Support multiple sources per mapping target
in FeedsDataProcessor.
- #904804 alex_b: Support exportable vocabularies.
- #836876 rsoden, Will White, alex_b: Add simple georss support to Common
Syndication Parser.
......
......@@ -205,6 +205,9 @@ class FeedsDataProcessor extends FeedsProcessor {
* Set target element, bring element in a FeedsDataHandler format.
*/
public function setTargetElement(&$target_item, $target_element, $value) {
if (empty($value)) {
return;
}
if (strpos($target_element, '.')) {
/**
......@@ -226,7 +229,12 @@ class FeedsDataProcessor extends FeedsProcessor {
$field => $v,
);
}
$target_item['#'. $table] = $values;
if (is_array($target_item["#$table"])) {
$target_item["#$table"] = array_merge($target_item["#$table"], $values);
}
else {
$target_item["#$table"] = $values;
}
}
else {
$target_item[$target_element] = $value;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment