mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-24 22:11:01 -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 = [
|
$parameters = [
|
||||||
'gsm_phone' => $builder->getPostValue('gsm_phone'),
|
'gsm_phone' => $builder->getPostValue('gsm_phone') ?: null,
|
||||||
'office_phone' => $builder->getPostValue('office_phone'),
|
'office_phone' => $builder->getPostValue('office_phone') ?: null,
|
||||||
'land_phone' => $builder->getPostValue('land_phone'),
|
'land_phone' => $builder->getPostValue('land_phone') ?: null,
|
||||||
'identification_number' => $builder->getPostValue('identification_number'),
|
'identification_number' => $builder->getPostValue('identification_number') ?: null,
|
||||||
'birthday' => $builder->getPostValue('birthday'),
|
'birthday' => $builder->getPostValue('birthday') ?: null,
|
||||||
'register_type' => $builder->getPostValue('register_type'),
|
'register_type' => $builder->getPostValue('register_type') ?: null,
|
||||||
'facebook_address' => $builder->getPostValue('facebook_address'),
|
'facebook_address' => $builder->getPostValue('facebook_address') ?: null,
|
||||||
'google_address' => $builder->getPostValue('google_address'),
|
'google_address' => $builder->getPostValue('google_address') ?: null,
|
||||||
];
|
];
|
||||||
|
|
||||||
if (setting_value('visiosoft.module.profile::show_education_profession')) {
|
if (setting_value('visiosoft.module.profile::show_education_profession')) {
|
||||||
|
|||||||
@ -70,7 +70,10 @@ class Register2FormFields
|
|||||||
"register_type" => [
|
"register_type" => [
|
||||||
"type" => "anomaly.field_type.select",
|
"type" => "anomaly.field_type.select",
|
||||||
"config" => [
|
"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",
|
"mode" => "radio",
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user