Skip to content
Snippets Groups Projects
Commit 544bcce3 authored by twistor's avatar twistor Committed by Eric Mckenna
Browse files

Issue #996808 by twistor, marcvangend, joshuajabbour: Fixed Update

existing doesn't reset targets that have real_target() set.
parent d023593e
No related branches found
No related tags found
No related merge requests found
...@@ -367,8 +367,8 @@ abstract class FeedsProcessor extends FeedsPlugin { ...@@ -367,8 +367,8 @@ abstract class FeedsProcessor extends FeedsPlugin {
// need to clear target elements of each item before mapping in case we are // need to clear target elements of each item before mapping in case we are
// mapping on a prepopulated item such as an existing node. // mapping on a prepopulated item such as an existing node.
foreach ($this->config['mappings'] as $mapping) { foreach ($this->config['mappings'] as $mapping) {
if (isset($targets[$mapping['target']]['real_target'])) { if (isset($targets[$this->id][$mapping['target']]['real_target'])) {
unset($target_item->{$targets[$mapping['target']]['real_target']}); unset($target_item->{$targets[$this->id][$mapping['target']]['real_target']});
} }
elseif (isset($target_item->{$mapping['target']})) { elseif (isset($target_item->{$mapping['target']})) {
unset($target_item->{$mapping['target']}); unset($target_item->{$mapping['target']});
......
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