mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-09 23:06:08 -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 $model = UserModel::class;
|
||||||
|
|
||||||
protected $fields = [
|
protected $fields = [
|
||||||
'file',
|
|
||||||
'gsm_phone',
|
'gsm_phone',
|
||||||
'office_phone',
|
'office_phone',
|
||||||
'land_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());
|
$user = $userModel->newQuery()->find(\auth()->id());
|
||||||
|
|
||||||
// Prevent removing already filled fields
|
// Prevent removing already filled fields
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user