Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Issue #1047894: Behavior when fields/columns are not in import file: do not clear field, but leave field untouched. reveiled that tamper callback-functions are called too often in feeds_tamper_feeds_after_parse(), with the following results:
- $result is appended when it shouldn't (tampered fields not in the current source).
- the issue 1047894 doesn't work for tampered fields
- error in log: Notice: Undefined index: {field_name} in feeds_tamper_feeds_after_parse() (line 22 of \feeds_tamper\feeds_tamper.module).
Comment | File | Size | Author |
---|---|---|---|
#1 | 1145678_1_feeds_tamper_feeds_after_parse.patch | 692 bytes | johnv |
Comments
Comment #1
johnvHere's the patch. After applying the patch, Feeds Tamper will not try to invoke EVERY tamper on EVERY field, but only on the fields for which a Tamper is created.
Comment #2
johnvComment #3
twistor CreditAttribution: twistor commentedCommitted, thanks!
http://drupalcode.org/project/feeds_tamper.git/commit/e87f03b
Comment #4
twistor CreditAttribution: twistor commented7.x http://drupalcode.org/project/feeds_tamper.git/commit/407b70b