Development
This commit is contained in:
parent
d55db32667
commit
4071d2bcbb
2 changed files with 23 additions and 2 deletions
|
|
@ -455,6 +455,11 @@ def collect_form_originals(items, tokens):
|
|||
value = apply_tokens(item.get('value', ''), tokens)
|
||||
if input_type == 'checkbox':
|
||||
result[name] = '1' if value.lower() in ('true', '1', 'yes') else '0'
|
||||
elif input_type == 'checkbox_group':
|
||||
try:
|
||||
result[name] = json.loads(value) if value else []
|
||||
except Exception:
|
||||
result[name] = []
|
||||
elif input_type == 'select' and not value:
|
||||
try:
|
||||
opts = json.loads(apply_tokens(item.get('options', '[]'), tokens))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue