resolved contact page map issue
This commit is contained in:
@@ -536,13 +536,14 @@ class HotelBranchInformation extends ObjectModel
|
||||
$idLang = $context->language->id;
|
||||
}
|
||||
|
||||
$sql = 'SELECT hbl.`hotel_name`, hbi.`phone`, hbi.`email`, hbi.`city`, cl.`name` AS country, hbi.`zipcode`,
|
||||
hbi.`address`, hbi.`latitude`, hbi.`longitude`, hbi.`map_formated_address`, hbi.`map_input_text`
|
||||
$sql = 'SELECT hbl.`hotel_name`, a.`phone`, hbi.`email`, a.`city`, cl.`name` AS country, a.`postcode`,
|
||||
a.`address1` as `address`, hbi.`latitude`, hbi.`longitude`, hbi.`map_formated_address`, hbi.`map_input_text`
|
||||
FROM `'._DB_PREFIX_.'htl_branch_info` AS hbi
|
||||
INNER JOIN `'._DB_PREFIX_.'htl_branch_info_lang` hbl
|
||||
ON (hbl.`id` = hbi.`id` AND hbl.`id_lang` = '.(int)$idLang.')
|
||||
LEFT JOIN `'._DB_PREFIX_.'address` a ON (a.`id_hotel` = hbi.`id`)
|
||||
INNER JOIN `'._DB_PREFIX_.'country_lang` AS cl
|
||||
ON (cl.`id_country` = hbi.`country_id` AND cl.`id_lang` = '.(int)$idLang.")
|
||||
ON (cl.`id_country` = a.`id_country` AND cl.`id_lang` = '.(int)$idLang.")
|
||||
WHERE hbi.`latitude` != 0 AND hbi.`longitude` != 0";
|
||||
|
||||
if ($active !== false) {
|
||||
|
||||
Reference in New Issue
Block a user