Fixed some smaller error messages due to null values
This commit is contained in:
parent
4329ee4af9
commit
29a4b244dc
|
@ -499,9 +499,8 @@ function User_view(
|
|||
$goodie_tshirt = $goodie === GoodieType::Tshirt;
|
||||
$auth = auth();
|
||||
$nightShiftsConfig = config('night_shifts');
|
||||
$user_name = htmlspecialchars(
|
||||
$user_source->personalData->first_name
|
||||
) . ' ' . htmlspecialchars($user_source->personalData->last_name);
|
||||
$user_name = htmlspecialchars((string) $user_source->personalData->first_name) . ' '
|
||||
. htmlspecialchars((string) $user_source->personalData->last_name);
|
||||
$myshifts_table = '';
|
||||
if ($its_me || $admin_user_privilege || $tshirt_admin) {
|
||||
$my_shifts = User_view_myshifts(
|
||||
|
|
|
@ -54,9 +54,10 @@
|
|||
{% if config('enable_planned_arrival') %}
|
||||
<div class="row g-4">
|
||||
<div class="col-sm-6">
|
||||
{% set planned_arrival_date = user.personalData.planned_arrival_date %}
|
||||
{{ f.input('planned_arrival_date', __('settings.profile.planned_arrival_date'), {
|
||||
'type': 'date',
|
||||
'value': user.personalData.planned_arrival_date.format('Y-m-d'),
|
||||
'value': planned_arrival_date ? planned_arrival_date.format('Y-m-d') : '',
|
||||
'required': true,
|
||||
'required_icon': true,
|
||||
'min': config('buildup_start') ? config('buildup_start').format('Y-m-d') : '',
|
||||
|
|
Loading…
Reference in New Issue