You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Ddeboer\DataImport\ItemConverter\MappingItemConverter
/** * Applies a mapping to an item * * @param array $item * @param string $from * @param string $to * * @return array */protectedfunction applyMapping(array$item, $from, $to)
{
// skip fields that dont existif (!isset($item[$from])) {
return$item;
}
isset also skips fields which do exist but have a null value, this can be fixed by replacing the isset code (line 79) with:
if (!array_key_exists($from, $item)) {
If you explicitly do not want to have null fields mapped then you could use another ItemConverter which filters empty keys. Or make it optional behaviour of MappingItemConverters.
Great bundle!
The text was updated successfully, but these errors were encountered:
In Ddeboer\DataImport\ItemConverter\MappingItemConverter
isset also skips fields which do exist but have a null value, this can be fixed by replacing the isset code (line 79) with:
If you explicitly do not want to have null fields mapped then you could use another ItemConverter which filters empty keys. Or make it optional behaviour of MappingItemConverters.
Great bundle!
The text was updated successfully, but these errors were encountered: