Security update for Core, with self-updated composer
[yaffs-website] / web / core / modules / comment / migration_templates / d7_comment.yml
index 94a28844770caeca3e9dc5dc998a1734c2adceb4..dff4b64ab91d1b1117e832bdbe4db7611ca62c8f 100644 (file)
@@ -16,8 +16,15 @@ process:
     source: pid
   entity_id: nid
   entity_type: 'constants/entity_type'
-  comment_type: comment_type
-  field_name: comment_type
+  comment_type:
+    -
+      plugin: migration_lookup
+      source: node_type
+      migration: d7_comment_type
+    -
+      plugin: skip_on_empty
+      method: row
+  field_name: '@comment_type'
   subject: subject
   uid: uid
   name: name