#2724 [profile-module] Error when trying to edit a select field

This commit is contained in:
Diatrex 2020-11-23 12:51:00 +03:00
parent 58e1c1b9c0
commit ecad063a32

View File

@ -41,33 +41,21 @@ class UsersFieldsSeeder extends Seeder
'name' => 'City', 'name' => 'City',
'slug' => 'city', 'slug' => 'city',
'type' => 'anomaly.field_type.select', 'type' => 'anomaly.field_type.select',
"config" => [
"options" => [],
]
], ],
[ [
'name' => 'District', 'name' => 'District',
'slug' => 'district', 'slug' => 'district',
'type' => 'anomaly.field_type.select', 'type' => 'anomaly.field_type.select',
"config" => [
"options" => [],
]
], ],
[ [
'name' => 'Neighborhood', 'name' => 'Neighborhood',
'slug' => 'neighborhood', 'slug' => 'neighborhood',
'type' => 'anomaly.field_type.select', 'type' => 'anomaly.field_type.select',
"config" => [
"options" => [],
]
], ],
[ [
'name' => 'Village', 'name' => 'Village',
'slug' => 'village', 'slug' => 'village',
'type' => 'anomaly.field_type.select', 'type' => 'anomaly.field_type.select',
"config" => [
"options" => [],
]
], ],
[ [
'name' => 'Gsm Phone', 'name' => 'Gsm Phone',
@ -89,10 +77,7 @@ class UsersFieldsSeeder extends Seeder
'slug' => 'register_type', 'slug' => 'register_type',
'type' => 'anomaly.field_type.select', 'type' => 'anomaly.field_type.select',
"config" => [ "config" => [
"options" => [ 'options' => '1: ' . trans('visiosoft.module.profile::field.individual.name') . "\n2: " . trans('visiosoft.module.profile::field.corporate.name')
'1' => trans('visiosoft.module.profile::field.individual.name'),
'2' => trans('visiosoft.module.profile::field.corporate.name')
],
] ]
], ],
[ [
@ -106,7 +91,7 @@ class UsersFieldsSeeder extends Seeder
'type' => 'anomaly.field_type.select', 'type' => 'anomaly.field_type.select',
'config' => [ 'config' => [
'default_value' => 1, 'default_value' => 1,
'options' => [0 => 'Active', 1 => 'Passive'], 'options' => "0: Active\n1: Passive",
'separator' => ':', 'separator' => ':',
] ]
], ],
@ -116,7 +101,7 @@ class UsersFieldsSeeder extends Seeder
'type' => 'anomaly.field_type.select', 'type' => 'anomaly.field_type.select',
'config' => [ 'config' => [
'default_value' => 1, 'default_value' => 1,
'options' => [0 => 'Active', 1 => 'Passive'], 'options' => "0: Active\n1: Passive",
'separator' => ':', 'separator' => ':',
] ]
], ],
@ -126,7 +111,7 @@ class UsersFieldsSeeder extends Seeder
'type' => 'anomaly.field_type.select', 'type' => 'anomaly.field_type.select',
'config' => [ 'config' => [
'default_value' => 1, 'default_value' => 1,
'options' => [0 => 'Active', 1 => 'Passive'], 'options' => "0: Active\n1: Passive",
'separator' => ':', 'separator' => ':',
] ]
], ],