mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-11 18:01:10 -06:00
#2851 [profile-module] Error when trying to fill fields
This commit is contained in:
parent
cc6afc14c9
commit
ca38f739ac
@ -17,14 +17,14 @@ class ProfileFormHandler
|
||||
}
|
||||
|
||||
$parameters = [
|
||||
'gsm_phone' => $builder->getPostValue('gsm_phone'),
|
||||
'office_phone' => $builder->getPostValue('office_phone'),
|
||||
'land_phone' => $builder->getPostValue('land_phone'),
|
||||
'identification_number' => $builder->getPostValue('identification_number'),
|
||||
'birthday' => $builder->getPostValue('birthday'),
|
||||
'register_type' => $builder->getPostValue('register_type'),
|
||||
'facebook_address' => $builder->getPostValue('facebook_address'),
|
||||
'google_address' => $builder->getPostValue('google_address'),
|
||||
'gsm_phone' => $builder->getPostValue('gsm_phone') ?: null,
|
||||
'office_phone' => $builder->getPostValue('office_phone') ?: null,
|
||||
'land_phone' => $builder->getPostValue('land_phone') ?: null,
|
||||
'identification_number' => $builder->getPostValue('identification_number') ?: null,
|
||||
'birthday' => $builder->getPostValue('birthday') ?: null,
|
||||
'register_type' => $builder->getPostValue('register_type') ?: null,
|
||||
'facebook_address' => $builder->getPostValue('facebook_address') ?: null,
|
||||
'google_address' => $builder->getPostValue('google_address') ?: null,
|
||||
];
|
||||
|
||||
if (setting_value('visiosoft.module.profile::show_education_profession')) {
|
||||
|
||||
@ -70,7 +70,10 @@ class Register2FormFields
|
||||
"register_type" => [
|
||||
"type" => "anomaly.field_type.select",
|
||||
"config" => [
|
||||
"options" => ['personal' => 'visiosoft.module.profile::field.personal.name', 'corporate' => 'visiosoft.module.profile::field.corporate.name'],
|
||||
"options" => [
|
||||
1 => 'visiosoft.module.profile::field.personal.name',
|
||||
2 => 'visiosoft.module.profile::field.corporate.name'
|
||||
],
|
||||
"mode" => "radio",
|
||||
],
|
||||
],
|
||||
|
||||
Loading…
Reference in New Issue
Block a user