From 794da363c5bb99a5c8fc55ed73ea1dd6ccdafe3b Mon Sep 17 00:00:00 2001 From: bach Date: Mon, 22 Feb 2021 13:45:47 +0100 Subject: [PATCH] fixed article migrate date changed bug --- .../sync/migrate_plus.migration.d7_node_article_i18n.yml | 2 -- .../migrate_plus.migration.d7_node_article_i18n.yml | 4 ++-- .../src/Plugin/migrate/source/D7NodeBreveI18n.php | 8 ++++---- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/config/sync/migrate_plus.migration.d7_node_article_i18n.yml b/config/sync/migrate_plus.migration.d7_node_article_i18n.yml index dcce0c4..da3d322 100644 --- a/config/sync/migrate_plus.migration.d7_node_article_i18n.yml +++ b/config/sync/migrate_plus.migration.d7_node_article_i18n.yml @@ -31,8 +31,6 @@ process: langcode: language content_translation_source: source title: title - created: created - changed: changed body: plugin: iterator source: body diff --git a/web/modules/custom/materio_migrate/config/install/migrate_plus.migration.d7_node_article_i18n.yml b/web/modules/custom/materio_migrate/config/install/migrate_plus.migration.d7_node_article_i18n.yml index 9c9844c..219f3eb 100644 --- a/web/modules/custom/materio_migrate/config/install/migrate_plus.migration.d7_node_article_i18n.yml +++ b/web/modules/custom/materio_migrate/config/install/migrate_plus.migration.d7_node_article_i18n.yml @@ -31,8 +31,8 @@ process: langcode: language content_translation_source: source title: title - created: created - changed: changed + # created: created + # changed: changed body: plugin: iterator source: body diff --git a/web/modules/custom/materio_migrate/src/Plugin/migrate/source/D7NodeBreveI18n.php b/web/modules/custom/materio_migrate/src/Plugin/migrate/source/D7NodeBreveI18n.php index efb5a22..6efe8f6 100644 --- a/web/modules/custom/materio_migrate/src/Plugin/migrate/source/D7NodeBreveI18n.php +++ b/web/modules/custom/materio_migrate/src/Plugin/migrate/source/D7NodeBreveI18n.php @@ -34,8 +34,8 @@ class D7NodeBreveI18n extends FieldableEntity { 'type', 'promote', 'sticky', - 'created', - 'changed', + // 'created', + // 'changed', ]) ->fields('nr', [ 'log', @@ -98,8 +98,8 @@ class D7NodeBreveI18n extends FieldableEntity { 'source' => $this->t('Node translation source language'), 'uid' => $this->t('Node translation authored by (uid)'), 'status' => $this->t('Published'), - 'created' => $this->t('Created timestamp'), - 'changed' => $this->t('Modified timestamp'), + // 'created' => $this->t('Created timestamp'), + // 'changed' => $this->t('Modified timestamp'), 'title' => $this->t('Node title'), 'type' => $this->t('Node type'), 'promote' => $this->t('Promoted to front page'),