user profile member email ok
This commit is contained in:
parent
beee434e21
commit
0e4c06a73a
|
@ -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:
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue