From a4550dc1460bfe6e76d6fdc50c984aeff9ca3d48 Mon Sep 17 00:00:00 2001 From: Nikolay Lobachev Date: Wed, 26 Jan 2022 14:48:05 +0500 Subject: [PATCH] Use default language filter to get URL property. --- .../migrations/migrate_plus.migration.newsroom_item_image.yml | 2 +- .../migrate_plus.migration.newsroom_item_image_media.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/newsroom_connector_item/migrations/migrate_plus.migration.newsroom_item_image.yml b/modules/newsroom_connector_item/migrations/migrate_plus.migration.newsroom_item_image.yml index 6fa97b5..f95ae5b 100644 --- a/modules/newsroom_connector_item/migrations/migrate_plus.migration.newsroom_item_image.yml +++ b/modules/newsroom_connector_item/migrations/migrate_plus.migration.newsroom_item_image.yml @@ -24,7 +24,7 @@ source: - name: image label: 'Image' - selector: 'enclosure[@nrdoctype="image"]/@url' + selector: 'enclosure[@nrdoctype="image" and @lang="EN"]/@url' - name: image_title label: 'Image title' diff --git a/modules/newsroom_connector_item/migrations/migrate_plus.migration.newsroom_item_image_media.yml b/modules/newsroom_connector_item/migrations/migrate_plus.migration.newsroom_item_image_media.yml index 9b30022..e0f8b74 100644 --- a/modules/newsroom_connector_item/migrations/migrate_plus.migration.newsroom_item_image_media.yml +++ b/modules/newsroom_connector_item/migrations/migrate_plus.migration.newsroom_item_image_media.yml @@ -29,7 +29,7 @@ source: - name: image label: 'Image' - selector: 'enclosure[@nrdoctype="image"]/@url' + selector: 'enclosure[@nrdoctype="image" and @lang="EN"]/@url' - name: image_alt label: 'Image alt text'