Commit 5ff88b90 authored by Côme Chilliet's avatar Côme Chilliet

Merge branch '6016-sinaps-have-continue-calls-targetting-switches' into '1.4-dev'

Resolve "Sinaps have continue calls targetting switches"

See merge request fusiondirectory/fd-plugins!655
parents 09ff51bc 68d6cd41
......@@ -164,12 +164,12 @@ class sinapsRequest
case 'ADR':
if ((string)$method->adresse->temoinAdressePrincipale != 'true') {
trigger_error('Ignore adresse non principale');
continue;
continue 2;
}
$adresse = $this->convertAddress($method->adresse);
if ($adresse === FALSE) {
trigger_error('Ignore adresse non FR non ETR');
continue;
continue 2;
}
$values['entite']['postalAddress'] = $adresse;
break;
......@@ -325,12 +325,12 @@ class sinapsRequest
case 'ADR':
if ((string)$method->adresse->temoinAdressePrincipale != 'true') {
trigger_error('Ignore adresse non principale');
continue;
continue 2;
}
$adresse = $this->convertAddress($method->adresse);
if ($adresse === FALSE) {
trigger_error('Ignore adresse non FR non ETR');
continue;
continue 2;
}
if ((string)$method->adresse->codeTypeAdresse == 'ADRPERSO') {
$values['user']['homePostalAddress'] = $adresse;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment