#2851 [profile-module] Error when trying to fill fields

This commit is contained in:
Diatrex 2020-12-11 11:00:47 +03:00
parent cc6afc14c9
commit ca38f739ac
2 changed files with 12 additions and 9 deletions

View File

@ -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')) {

View File

@ -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",
],
],