Skip to content
Snippets Groups Projects
Commit 1ba186c1 authored by daniquilez's avatar daniquilez
Browse files

avoid url translations if no translations on wp

parent 20514fd8
No related branches found
No related tags found
1 merge request!277[REL] Release Sprint 27/11/23
Pipeline #70510 passed
......@@ -376,14 +376,15 @@ class LandingCmPlace:
MapClientConfig.MAPPING__EXTERNAL_LINK__LANDING__LINK_LABEL["es_ES"],
"es_ES",
)
if "es" in self.wp_landing_data["translations"].keys():
self._update_translation(
"cm.place.external.link,url",
external_link.id,
self.wp_landing_data["link"],
self.wp_landing_data["translations"]["es"],
"es_ES",
)
if self.wp_landing_data["translations"]:
if "es" in self.wp_landing_data["translations"].keys():
self._update_translation(
"cm.place.external.link,url",
external_link.id,
self.wp_landing_data["link"],
self.wp_landing_data["translations"]["es"],
"es_ES",
)
return external_link
def _apply_place_metadatas_translations(self, place):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment