Browse Source

fixed article migrate date changed bug

bach 3 years ago
parent
commit
794da363c5

+ 0 - 2
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

+ 2 - 2
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

+ 4 - 4
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'),