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.
If you have a translatable text field that also has a default value and entity_translation is enabled then on a Feeds import field values for all languages will be saved. I only want to save content for one language. There should be no values for other languages, but currently Feeds creates translation field values with the configured default value of the field.
Comment | File | Size | Author |
---|---|---|---|
#2 | feeds-et-2850474-2.patch | 937 bytes | klausi |
|
Comments
Comment #2
klausiWorkaround patch, but I'm not sure this is the correct solution.
Comment #3
klausitypo
Comment #4
MegaChriz CreditAttribution: MegaChriz as a volunteer commentedI'm not completely sure if the call to
removeTranslation()
is really needed. I assume it is meant to properly clear out values when importing empty values. It was added by olofjohansson in #1183440-108: Multilingual Feeds - Make field import language-aware.Do you want to write a test to demonstrate the issue? The test could be added to the Feedsi18nNodeTestCase class which is in the file tests/feeds_i18n_node.test.