Problem/Motivation
When the source is an empty array, no Tamper plugins are applied for that source. This is for example an issue when using the JSON parser, defining a custom source that does not appear in the JSON file and trying to apply the hash Tamper plugin on a source.
The reason why this happens is that whenever Feeds Tamper receives an array, it thinks it deals with a multivalue source and will try to iterate over it. Iterating over an empty array thus results that no Tamper plugins get applied.
Proposed resolution
When the value is an array, also check if it is empty.
Comments
Comment #2
megachrizHere is a patch that could fix the issue. This will need an automated test.
Comment #3
megachrizWriting this test seemed much easier than I thought!
Comment #6
megachrizTests fail for the test only patch and pass with the fix. Committed #3.