Closed (fixed)
Project:
Feeds
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
9 Aug 2010 at 17:57 UTC
Updated:
3 Jan 2014 at 01:42 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
Will White commentedThis patch checks to see if a target value already exists as an array. If it does, and if the value is also an array, it merges them together.
Comment #2
alex_b commentedWe should add a test for this. Very simple:
- configure importer that uses multiple sources per target.
- import feed, check.
- clear feed.
- enable 'replace existing'.
- import feed, check.
Should be added to the feeds module's tests.
Comment #3
David Goode commentedFix to avoid setting non-empty values to empty ones (this was a previously present behavior, not caused by patch, but probably exposed because rare to use multiple mappings previously).
Also preliminarily added (w/o testing) the same support for the joined tables in the data processor. We should probably add this functionality to all the relevant default processors before committing... (as well as doing tests).
Comment #4
alex_b commentedTo be released w/ 6.x-1.0-beta5.
Comment #5
alex_b commentedWe shouldn't need merged arrays for fields of the main table, only for fields in related tables. The main table can only store a single value anyway. We need to keep a check for wether value is empty though, I moved it all the way up.
Tests turn out actually to be hard to do in this scenario, we would have to set up a related table and map to it. Given that the modification winds up being very small we should be able to get away without it.
Comment #6
alex_b commentedCommitted, thank you.
http://drupal.org/cvs