Skip to content

Commit

Permalink
Fixes #4134 handles multiple groups for a new map in worldmap client (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
capooti committed Dec 19, 2018
1 parent 346744c commit 68a7137
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion geonode/contrib/worldmap/wm_extra/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -767,7 +767,8 @@ def gxp2wm(config, map_obj=None):
config['about']['introtext'] = unicode(settings.DEFAULT_MAP_ABSTRACT)

if not [d for d in config['map']['groups'] if d['group'] == group]:
config['map']['groups'].append({"expanded": "true", "group": group})
for group in groups:
config['map']['groups'].append({"expanded": "true", "group": group})

if config_is_string:
config = json.dumps(config)
Expand Down

0 comments on commit 68a7137

Please sign in to comment.