Merge pull request #1052 from openclassify/muammertop

fixed profile update error
This commit is contained in:
Fatih Alp 2021-04-22 18:07:05 +03:00 committed by GitHub
commit 81e81302c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 7 deletions

View File

@ -8,7 +8,6 @@ class ProfileFormBuilder extends FormBuilder
protected $model = UserModel::class;
protected $fields = [
'file',
'gsm_phone',
'office_phone',
'land_phone',

View File

@ -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