Skip to content

Commit

Permalink
Merge pull request #4961 from camptocamp/i18n-fix
Browse files Browse the repository at this point in the history
Fix layers list on WMTS queryLayers i18n
  • Loading branch information
sbrunner authored May 24, 2019
2 parents d2749a7 + 2df8d25 commit 467b932
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions geoportal/c2cgeoportal_geoportal/lib/lingua_extractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,7 @@ def _import_layer_wmts(self, layer, messages):
layers = [d.value for d in layer.metadatas if d.name == "wmsLayer"]
server = [d.value for d in layer.metadatas if d.name == "ogcServer"]
if len(server) >= 1 and len(layers) >= 1:
layers = [l for ls in layers for l in ls.split(',')]
for wms_layer in layers:
try:
db_server = DBSession.query(OGCServer).filter(OGCServer.name == server[0]).one()
Expand Down

0 comments on commit 467b932

Please sign in to comment.