Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fixes #7102] All new Styles seem to be called Default Styler, not their actual name #7103

Merged
merged 4 commits into from
Mar 19, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion geonode/geoserver/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -1191,7 +1191,9 @@ def save_style(gs_style, layer):
style, created = Style.objects.get_or_create(name=style_name)
if not style.workspace and gs_style.workspace:
style.workspace = layer.workspace
style.sld_title = gs_style.sld_title or sld_name

title = gs_style.sld_title if gs_style.style_format != 'css' else sld_name
style.sld_title = title
style.sld_body = gs_style.sld_body
style.sld_url = gs_style.body_href
style.save()
Expand Down