Skip to content
Snippets Groups Projects
Commit 95cc7449 authored by Chris Leppanen's avatar Chris Leppanen
Browse files

Issue #1107522 by ditcheva, Uhkis, cthiebault, franz, nielsonm, Niklas Fiekas,...

Issue #1107522 by ditcheva, Uhkis, cthiebault, franz, nielsonm, Niklas Fiekas, twistor, mparker17, Lasac, guillaumev | jptl: Framework for expected behavior when importing empty/blank values + text field fix.
parent f6aa61db
No related branches found
No related tags found
No related merge requests found
...@@ -470,10 +470,10 @@ abstract class FeedsProcessor extends FeedsPlugin { ...@@ -470,10 +470,10 @@ abstract class FeedsProcessor extends FeedsPlugin {
// 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[$this->id][$mapping['target']]['real_target'])) { if (isset($targets[$this->id][$mapping['target']]['real_target'])) {
unset($target_item->{$targets[$this->id][$mapping['target']]['real_target']}); $target_item->{$targets[$this->id][$mapping['target']]['real_target']} = NULL;
} }
elseif (isset($target_item->{$mapping['target']})) { else {
unset($target_item->{$mapping['target']}); $target_item->{$mapping['target']} = NULL;
} }
} }
......
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