Development
This commit is contained in:
parent
76571e3657
commit
99447b4987
1 changed files with 2 additions and 1 deletions
|
|
@ -472,7 +472,8 @@ def collect_form_originals(items, tokens):
|
|||
result[name] = []
|
||||
elif input_type == 'select' and not value:
|
||||
try:
|
||||
opts = json.loads(apply_tokens(item.get('options', '[]'), tokens))
|
||||
raw_opts = item.get('options', [])
|
||||
opts = raw_opts if isinstance(raw_opts, list) else json.loads(apply_tokens(raw_opts, tokens))
|
||||
value = opts[0]['value'] if opts else ''
|
||||
except Exception:
|
||||
pass
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue