summaryrefslogtreecommitdiff
path: root/includes/view/User_view.php
diff options
context:
space:
mode:
authorIgor Scheller <igor.scheller@igorshp.de>2018-10-14 00:26:05 +0200
committermsquare <msquare@notrademark.de>2018-10-31 13:43:23 +0100
commit57932be4287d0ea6235137f1a86f07cbb06dd35b (patch)
treea059d6eb765ad511c6e2224211aab3bb0a57abdf /includes/view/User_view.php
parent4e09ee3eb255160c88a378375d69123a3e000497 (diff)
Moved arrival_date to state
Diffstat (limited to 'includes/view/User_view.php')
-rw-r--r--includes/view/User_view.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/includes/view/User_view.php b/includes/view/User_view.php
index bcf9aff7..cfafaeb1 100644
--- a/includes/view/User_view.php
+++ b/includes/view/User_view.php
@@ -25,6 +25,7 @@ function User_settings_view(
$tshirt_sizes
) {
$personalData = $user_source->personalData;
+ $state = $user_source->state;
return page_with_title(settings_title(), [
msg(),
div('row', [
@@ -38,7 +39,7 @@ function User_settings_view(
form_date(
'planned_arrival_date',
__('Planned date of arrival') . ' ' . entry_required(),
- $personalData->arrival_date ? $personalData->arrival_date->getTimestamp() : '',
+ $state->arrival_date ? $state->arrival_date->getTimestamp() : '',
$buildup_start_date,
$teardown_end_date
),
@@ -726,7 +727,7 @@ function User_view_state_admin($freeloader, $user_source)
$state[] = '<span class="text-success">' . glyph('home')
. sprintf(
__('Arrived at %s'),
- $user_source->personalData->arrival_date ? $user_source->personalData->arrival_date->format('Y-m-d') : ''
+ $user_source->state->arrival_date ? $user_source->state->arrival_date->format('Y-m-d') : ''
)
. '</span>';