This is an automated email from the ASF dual-hosted git repository.
jleroux pushed a commit to branch trunk
in repository
https://gitbox.apache.org/repos/asf/ofbiz-framework.gitThe following commit(s) were added to refs/heads/trunk by this push:
new c4b106e Improved: Allow to pass a Google API key for geolocation (OFBIZ-12247)
c4b106e is described below
commit c4b106e1b1d4a9e4fbc74849a40965d9691e4951
Author: Jacques Le Roux <
[hidden email]>
AuthorDate: Sun May 30 06:22:24 2021 +0200
Improved: Allow to pass a Google API key for geolocation (OFBIZ-12247)
Fixes the call to the Google API key
Thanks to Daniel
---
themes/common-theme/template/includes/GeoLocation.ftl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/themes/common-theme/template/includes/GeoLocation.ftl b/themes/common-theme/template/includes/GeoLocation.ftl
index e56e818..4615f60 100644
--- a/themes/common-theme/template/includes/GeoLocation.ftl
+++ b/themes/common-theme/template/includes/GeoLocation.ftl
@@ -46,7 +46,7 @@ under the License.
<h2>${uiLabelMap.CommonNoGoogleAPIkeyAvailable}</h2>
<script src="
https://maps.googleapis.com/maps/api/js" type="application/javascript"></script>
<#else>
- <script src="
https://maps.googleapis.com/maps/api/js?key=googleApiKey" type="application/javascript"></script>
+ <script src="
https://maps.googleapis.com/maps/api/js?key=${googleApiKey}" type="application/javascript"></script>
</#if>
</#if>
<#-- ========================== Here we go with different types of maps renderer ===========================-->