Commit ea6e01b3 authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_web: form post can send "shared" in many formats.

parent a1b505b7
...@@ -3,9 +3,10 @@ portal = context.getPortalObject() ...@@ -3,9 +3,10 @@ portal = context.getPortalObject()
if shared == "true": if shared == "true":
shared = True shared = True
if shared == "false": if shared in ["false", "", None]:
shared = False shared = False
if not service_title: if not service_title:
raise ValueError("Service Title is mandatory!") raise ValueError("Service Title is mandatory!")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment