mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
form: default type to "select" if choices in option
This commit is contained in:
parent
6953a8bf15
commit
ef860ee6ee
1 changed files with 1 additions and 1 deletions
|
@ -1309,7 +1309,7 @@ class OptionsModel(BaseModel):
|
||||||
option
|
option
|
||||||
| {
|
| {
|
||||||
"id": option.get("id", id_),
|
"id": option.get("id", id_),
|
||||||
"type": option.get("type", "string"),
|
"type": option.get("type", "select" if "choices" in option else "string"),
|
||||||
"optional": option.get("optional", optional),
|
"optional": option.get("optional", optional),
|
||||||
}
|
}
|
||||||
for id_, option in options.items()
|
for id_, option in options.items()
|
||||||
|
|
Loading…
Add table
Reference in a new issue