user profile member email ok

This commit is contained in:
Bachir Soussi Chiadmi 2019-02-10 21:29:55 +01:00
parent beee434e21
commit 0e4c06a73a
2 changed files with 7 additions and 17 deletions

View File

@ -81,21 +81,11 @@ process:
title: title
options: attributes
# not verified
field_email: field_email
# field_email
# plugin: merge
# source:
# - field_administrative_email
# - field_private_email
# field_name:
# plugin: merge
# source:
# - field_name
# - field_private_name
field_email:
plugin: iterator
source: field_email
process:
value: email
migration_dependencies:
required:

View File

@ -109,11 +109,11 @@ class D7UserProfile extends FieldableEntity {
// merge : field_private_name & field_name into field_name
switch ($type) {
case 'contact_operationnel':
$row->setSourceProperty('field_email', $row->getSourceProperty('field_administrative_email'));
$row->setSourceProperty('field_email', $row->getSourceProperty('field_private_email'));
$row->setSourceProperty('field_name', $row->getSourceProperty('field_private_name'));
break;
case 'adherent':
$row->setSourceProperty('field_email', $row->getSourceProperty('field_private_email'));
$row->setSourceProperty('field_email', $row->getSourceProperty('field_administrative_email'));
break;
}