I'm using migrate_d2d to migrate a Drupal 6 site to a Drupal 7 site.

I have created a new content type in Drupal 7, patterned on the content type in Drupal 6.

In Drupal 6, I am using the standard body text field for the text of articles.

Pre-migration, in Drupal 7 I deleted the default "Body" field (because I didn't want it to be a long text and summary field) and replaced it with a long text field with machine name field_body.

In the Drupal Migrate UI, if I edit the settings for the content type migration in question, under "Source fields" the "Body [body]" is checked by default, meaning it doesn't appear in the drop-down lists of possible sources:

Drupal Migrate UI showing issue

If I uncheck the "Body [body]" field and "Apply Changes", it then becomes available as a source, I can map it into my new field_body field, and proceed with the migration without any issues:

Body now available after unchecking and applying changes

However, when I next edit the migration of this content type in the Drupal Migrate UI, the "Body [body]" appears checked, the mapping for field_body and before I can migrate again I must again uncheck, save, and re-map.

CommentFileSizeAuthor
body-available.png112.33 KBreinvented
body-dnm-by-default.png70.06 KBreinvented
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mikeryan’s picture

Project: Drupal-to-Drupal data migration » Migrate
Version: 7.x-2.1 » 7.x-2.x-dev
Component: User interface » migrate_ui
Issue tags: +Migrate 2.8

The field mapping editor is part of migrate, not migrate_d2d.

I'll look into this, probably next week.

mikeryan’s picture

I see what the problem is - overriding a source-only mapping (the default DNM) isn't nearly as straightforward as overriding destination-based mappings. Not sure quite what to do yet - maybe save a special row to migrate_field_mappings to indicate the DNM is being overridden with nothing, or maybe when combining field mappings throw out the DNM if the source field is elsewhere mapped to a destination field.

  • mikeryan committed 4d1113b on 7.x-2.x
    Issue #2446105 by mikeryan: Keep coded DNM source field mappings from...
mikeryan’s picture

Status: Active » Fixed

Added a tweak to the field mapping merge so this doesn't happen.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.