X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Ffield%2Fsrc%2FPlugin%2Fmigrate%2Fsource%2Fd7%2FField.php;fp=web%2Fcore%2Fmodules%2Ffield%2Fsrc%2FPlugin%2Fmigrate%2Fsource%2Fd7%2FField.php;h=ea3bf66d3863a3801cfe0584d519361ca60a7b48;hp=da9e0373281ce6472d3c5a4fff4a60ac9954a1cd;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hpb=74df008bdbb3a11eeea356744f39b802369bda3c diff --git a/web/core/modules/field/src/Plugin/migrate/source/d7/Field.php b/web/core/modules/field/src/Plugin/migrate/source/d7/Field.php index da9e03732..ea3bf66d3 100644 --- a/web/core/modules/field/src/Plugin/migrate/source/d7/Field.php +++ b/web/core/modules/field/src/Plugin/migrate/source/d7/Field.php @@ -34,6 +34,19 @@ class Field extends DrupalSqlBase { ->condition('fci.deleted', 0); $query->join('field_config_instance', 'fci', 'fc.id = fci.field_id'); + // If the Drupal 7 Title module is enabled, we don't want to migrate the + // fields it provides. The values of those fields will be migrated to the + // base fields they were replacing. + if ($this->moduleExists('title')) { + $title_fields = [ + 'title_field', + 'name_field', + 'description_field', + 'subject_field', + ]; + $query->condition('fc.field_name', $title_fields, 'NOT IN'); + } + return $query; }