Skip to content
Snippets Groups Projects
Commit 9111e4f5 authored by sveseli's avatar sveseli
Browse files

enhance conversion to bool

parent ed61d9c2
No related branches found
No related tags found
No related merge requests found
......@@ -6,7 +6,10 @@ class ValueUtility:
def toBoolean(cls, value):
if value is None:
return False
if str(value).lower() == 'true':
strValue = str(value).lower()
if strValue == '1':
return True
elif strValue == 'true':
return True
return False
......
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