Skip to content

Commit

Permalink
update boolean field in form (#29)
Browse files Browse the repository at this point in the history
* update boolean field in form

* Update action.py

* Update action.py
  • Loading branch information
LeoQuote authored Jul 23, 2020
1 parent bb8ce66 commit b6fab69
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion helpdesk/models/action.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,10 @@ async def run(self, provider, form, user):
return None, msg
if live_value is not None:
if v.get('type') == 'boolean':
live_value = True
if live_value in ("true", "True", "TRUE", True):
live_value = True
else:
live_value = False
params[k] = live_value

# create ticket
Expand Down

0 comments on commit b6fab69

Please sign in to comment.