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 title: title
options: attributes options: attributes
field_email:
# not verified plugin: iterator
source: field_email
field_email: field_email process:
# field_email value: email
# plugin: merge
# source:
# - field_administrative_email
# - field_private_email
# field_name:
# plugin: merge
# source:
# - field_name
# - field_private_name
migration_dependencies: migration_dependencies:
required: required:

View File

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