From 04900c3cae9f5b5565802d9cf6f0a9811af17683 Mon Sep 17 00:00:00 2001 From: catch Date: Thu, 21 Dec 2023 10:30:32 +0000 Subject: [PATCH] Issue #3371869 by quietone: Fix dependencies of taxonomy term translation migrations --- .../d7_taxonomy_term_entity_translation.yml | 2 ++ ...d7_taxonomy_term_localized_translation.yml | 2 ++ .../d7_taxonomy_term_translation.yml | 2 ++ ...e_content_taxonomy_vocabulary_settings.yml | 19 +++++++++++++++++++ 4 files changed, 25 insertions(+) diff --git a/core/modules/content_translation/migrations/d7_taxonomy_term_entity_translation.yml b/core/modules/content_translation/migrations/d7_taxonomy_term_entity_translation.yml index a156ab68de6..82e29800391 100644 --- a/core/modules/content_translation/migrations/d7_taxonomy_term_entity_translation.yml +++ b/core/modules/content_translation/migrations/d7_taxonomy_term_entity_translation.yml @@ -29,3 +29,5 @@ migration_dependencies: - language - d7_entity_translation_settings - d7_taxonomy_term + optional: + - d7_language_content_taxonomy_vocabulary_settings diff --git a/core/modules/content_translation/migrations/d7_taxonomy_term_localized_translation.yml b/core/modules/content_translation/migrations/d7_taxonomy_term_localized_translation.yml index fd6dc321bc2..3e0453d285b 100644 --- a/core/modules/content_translation/migrations/d7_taxonomy_term_localized_translation.yml +++ b/core/modules/content_translation/migrations/d7_taxonomy_term_localized_translation.yml @@ -45,3 +45,5 @@ migration_dependencies: required: - language - d7_taxonomy_term + optional: + - d7_language_content_taxonomy_vocabulary_settings diff --git a/core/modules/content_translation/migrations/d7_taxonomy_term_translation.yml b/core/modules/content_translation/migrations/d7_taxonomy_term_translation.yml index 10091a8e760..7494d1d5eb3 100644 --- a/core/modules/content_translation/migrations/d7_taxonomy_term_translation.yml +++ b/core/modules/content_translation/migrations/d7_taxonomy_term_translation.yml @@ -42,3 +42,5 @@ migration_dependencies: required: - language - d7_taxonomy_term + optional: + - d7_language_content_taxonomy_vocabulary_settings diff --git a/core/modules/language/migrations/d7_language_content_taxonomy_vocabulary_settings.yml b/core/modules/language/migrations/d7_language_content_taxonomy_vocabulary_settings.yml index 5ccc0fc5f5c..03f24ad3efb 100644 --- a/core/modules/language/migrations/d7_language_content_taxonomy_vocabulary_settings.yml +++ b/core/modules/language/migrations/d7_language_content_taxonomy_vocabulary_settings.yml @@ -18,6 +18,22 @@ process: - plugin: skip_on_empty method: row + _skip: + - + plugin: concat + source: + - 'constants/target_type' + - '@target_bundle' + delimiter: . + - + plugin: migration_lookup + migration: d7_entity_translation_settings + - + plugin: callback + callable: is_null + - + plugin: skip_on_empty + method: row # State is the value in the i18n_mode column of taxonomy_vocabulary table # 0: No multilingual options. # 1: Localize. Localizable object. Run through the localization system @@ -54,3 +70,6 @@ migration_dependencies: required: - language - d7_taxonomy_vocabulary + optional: + - d7_language_content_settings + - d7_entity_translation_settings