Closed (fixed)
Project:
Feeds Tamper
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
29 Mar 2012 at 17:46 UTC
Updated:
11 Jul 2014 at 23:50 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
elliotttf commentedComment #2
chrisroditis commentedWorks wonderfully!
Comment #3
twistor commentedI'm not sure this is desirable in all cases. I know from experience that something is needed though.
There's actually two different use cases here. Tampering NULL, which would be the following patch. This is going in either way:
Then there's setting the field to NULL if it was unset. This is also needed, but sometimes it is undesired.
Comment #4
elliotttf commentedI believe the original patch achieves both cases. The reason isset and array_key_exists were both used was to short circuit the conditional with the more performant isset if the null case wasn't needed.
I agree that there may be cases where setting the field to null might be undesirable but I haven't personally hit one of those cases yet. If someone can chime in with a use case where that'd be a bad idea I'd be happy to bounce around some other ideas.
Comment #5
twistor commentedThis was fixed a long time ago.