mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-11 18:01:10 -06:00
fixed profile update error
This commit is contained in:
parent
715dd6dad4
commit
c3c52b2dda
@ -8,7 +8,6 @@ class ProfileFormBuilder extends FormBuilder
|
||||
protected $model = UserModel::class;
|
||||
|
||||
protected $fields = [
|
||||
'file',
|
||||
'gsm_phone',
|
||||
'office_phone',
|
||||
'land_phone',
|
||||
|
||||
@ -48,12 +48,6 @@ class ProfileFormHandler
|
||||
]);
|
||||
}
|
||||
|
||||
if ($builder->getPostValue('file') != null) {
|
||||
$parameters['file_id'] = $builder->getPostValue('file');
|
||||
} elseif (empty($builder->getPostValue('file'))) {
|
||||
$parameters['file_id'] = null;
|
||||
}
|
||||
|
||||
$user = $userModel->newQuery()->find(\auth()->id());
|
||||
|
||||
// Prevent removing already filled fields
|
||||
|
||||
Loading…
Reference in New Issue
Block a user