kopia lustrzana https://github.com/hholzgra/maposmatic/
prevent errors in case that overlay selection is not transmitted
some web clients seem to totally obmit the overlay field instead of transmitting it emptypull/60/head
rodzic
e333af4e21
commit
28ba91b10a
|
@ -190,8 +190,11 @@ class MapRenderingJobForm(forms.ModelForm):
|
|||
layout = cleaned_data.get("layout")
|
||||
stylesheet = cleaned_data.get("stylesheet")
|
||||
overlay_array = []
|
||||
for overlay in cleaned_data.get("overlay"):
|
||||
overlay_array.append(overlay)
|
||||
try:
|
||||
for overlay in cleaned_data.get("overlay"):
|
||||
overlay_array.append(overlay)
|
||||
except:
|
||||
pass
|
||||
overlay = ",".join(overlay_array)
|
||||
|
||||
if layout == '':
|
||||
|
|
Ładowanie…
Reference in New Issue