Merge pull request #860 from openclassify/dia

#2851 [profile-module] Error when trying to fill fields
This commit is contained in:
Muammer Top 2020-12-11 15:50:48 +03:00 committed by GitHub
commit fb6e9f1f9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 9 deletions

View File

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

View File

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