Fix Gender
This commit is contained in:
@@ -103,7 +103,6 @@ class PersonController extends Controller
|
|||||||
'name_suffix',
|
'name_suffix',
|
||||||
'phone',
|
'phone',
|
||||||
'email',
|
'email',
|
||||||
'gender',
|
|
||||||
'birth_date',
|
'birth_date',
|
||||||
'birth_place',
|
'birth_place',
|
||||||
'citizenship',
|
'citizenship',
|
||||||
@@ -119,6 +118,7 @@ class PersonController extends Controller
|
|||||||
]);
|
]);
|
||||||
$personData['last_weight_kg'] = $request->weight ?? null;
|
$personData['last_weight_kg'] = $request->weight ?? null;
|
||||||
$personData['last_height_cm'] = $request->height ?? null;
|
$personData['last_height_cm'] = $request->height ?? null;
|
||||||
|
$personData['gender'] = $request->has('gender') ? ($request->gender == 'P' ? 'M' : ($request->gender == 'W' ? 'F' : null)) : null;
|
||||||
|
|
||||||
$family->fill($personData);
|
$family->fill($personData);
|
||||||
$family->save();
|
$family->save();
|
||||||
|
|||||||
Reference in New Issue
Block a user