user profile contact_op ok

This commit is contained in:
Bachir Soussi Chiadmi 2019-02-10 22:09:48 +01:00
parent 0e4c06a73a
commit 45f44e0623
2 changed files with 6 additions and 1 deletions

View File

@ -31,6 +31,7 @@ process:
plugin: migration_lookup
migration: d7_users
source: uid
field_title: field_private_name_title
field_first_name: field_first_name
field_name: field_name
@ -87,6 +88,8 @@ process:
process:
value: email
field_memo: field_memo
migration_dependencies:
required:
- d7_users

View File

@ -102,7 +102,9 @@ class D7UserProfile extends FieldableEntity {
// Get Field API field values.
foreach ($this->getFields('profile2', $type) as $field_name => $field) {
$row->setSourceProperty($field_name, $this->getFieldValues('profile2', $field_name, $pid));
// drush_print($field_name);
$value = $this->getFieldValues('profile2', $field_name, $pid);
$row->setSourceProperty($field_name, $value);
}
// merge : field_administrative_email & field_private_email into field_email