fixed address field bug
This commit is contained in:
parent
4756fdaf77
commit
5cbbf7cbf5
@ -262,7 +262,7 @@ 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'];
|
||||
|
||||
$address = $member_profile->field_adresse['und'][0];
|
||||
if($address = $member_profile->field_adresse['und'][0]){
|
||||
$formaddress = &$columnright['company']['location']['#address'];
|
||||
$formaddress['country'] = $address['country'];
|
||||
$formaddress['thoroughfare'] = $address['thoroughfare'];
|
||||
@ -271,6 +271,8 @@ function materio_user_webform_client_11186_form_alter(&$form, &$form_state, $for
|
||||
$formaddress['locality'] = $address['locality'];
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function materio_user_webform_client_11186_validate($form, &$form_state){
|
||||
// dsm($form, 'form');
|
||||
// dsm($form_state, 'form_state');
|
||||
|
Loading…
x
Reference in New Issue
Block a user