Skip to content
Snippets Groups Projects
Commit 1393cada authored by Maël Méliani's avatar Maël Méliani
Browse files

Fixed an error on the previous submission.

parent e98dede7
No related branches found
No related tags found
No related merge requests found
......@@ -702,12 +702,6 @@ class layers(object):
with webapp.mightConflict("layer", mapfile=map_name):
mf.create_layer(ws, model, l_name, l_enabled)
with webapp.mightNotFound("layer", mapfile=map_name):
layer = mf.get_layer(l_name)
layer.ms.dump = mapscript.MS_TRUE
mf.save()
webapp.Created("%s/maps/%s/layers/%s%s" % (web.ctx.home, map_name, l_name, (".%s" % format) if format else ""))
......
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