fix: adopt changes in myep api, use correct template variable
This commit is contained in:
@@ -84,8 +84,8 @@ class TravelinfoController extends ActionController
|
||||
$service = array_filter($travelData['transportationServices'] ?? [], function ($service) {
|
||||
return 'BUS' === $service['subType'] && 'RUECK' === $service['direction'];
|
||||
});
|
||||
if (null !== $service[0] ?? null) {
|
||||
$departureDayTime = $service[0]['dayTime'];
|
||||
if ($serviceDetail = reset($service)) {
|
||||
$departureDayTime = $serviceDetail['dayTime'];
|
||||
}
|
||||
|
||||
$this->view->assign('travelInfo', $travelInfo);
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
{travelInfo.headline}
|
||||
</h1>
|
||||
{travelInfo.introText -> f:format.html()}
|
||||
<f:if condition="{date}">
|
||||
<f:if condition="{travelData}">
|
||||
<p>
|
||||
{travelData.label} {travelData.dateFrom -> f:format.date(format: 'd.m.Y')} - {travelData.dateTo -> f:format.date(format: 'd.m.Y')}
|
||||
</p>
|
||||
@@ -62,7 +62,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="lg:w-3/4 pt-8 lg:pt-0 lg:px-8 text-white" data-rte-content>
|
||||
<f:if condition="{date}">
|
||||
<f:if condition="{travelData}">
|
||||
<f:if condition="{travelInfo.hideAddress}">
|
||||
<f:else>
|
||||
<h3 class="text-white">
|
||||
|
||||
Reference in New Issue
Block a user