Fix incorrect coordinates determination in gmaps ce

This commit is contained in:
Björn Fromme
2018-07-03 09:13:27 +02:00
parent 272ca0bd8a
commit 36e3a09682
3 changed files with 26 additions and 22 deletions
@@ -97,11 +97,10 @@ class PageLayoutView implements PageLayoutViewDrawItemHookInterface
$drawItem = false;
$region = BackendUtility::getRecord('tx_epproducts_domain_model_region', $row['tx_eptheme_context_region']);
$itemContent = '<strong>Google Map</strong><br />' . $region['name'];
if ((int) $row['tx_eptheme_context_hotel'] > 0) {
$hotel = BackendUtility::getRecord('tx_epproducts_domain_model_hotel',
$row['tx_eptheme_context_hotel']);
$itemContent .= ', ' . $hotel['name'];
}
} elseif ((int) $row['tx_eptheme_context_hotel'] > 0) {
$drawItem = false;
$hotel = BackendUtility::getRecord('tx_epproducts_domain_model_hotel', $row['tx_eptheme_context_hotel']);
$itemContent = '<strong>Google Map</strong><br />' . $hotel['name'];
}
break;
case 'disturber':