fixed address field bug

This commit is contained in:
Bachir Soussi Chiadmi 2014-07-10 20:29:00 +02:00
parent 5cbbf7cbf5
commit d214a86eeb

View File

@ -262,7 +262,8 @@ function materio_user_webform_client_11186_form_alter(&$form, &$form_state, $for
$columnright['company']['d']['vat_number_intra_ce']['#default_value'] = $member_profile->field_vat_number_intra_ce['und'][0]['value'];
$columnright['company']['d']['website']['#default_value'] = $member_profile->field_user_website['und'][0]['url'];
if($address = $member_profile->field_adresse['und'][0]){
if( isset($member_profile->field_adresse['und'][0]) ){
$address = $member_profile->field_adresse['und'][0];
$formaddress = &$columnright['company']['location']['#address'];
$formaddress['country'] = $address['country'];
$formaddress['thoroughfare'] = $address['thoroughfare'];