mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Don't restrict choices if there's no choices specified
This commit is contained in:
parent
686c372baf
commit
31bbc026fd
1 changed files with 2 additions and 1 deletions
|
@ -703,7 +703,8 @@ class Question:
|
|||
self.default = question.get("default", None)
|
||||
self.optional = question.get("optional", False)
|
||||
self.visible = question.get("visible", None)
|
||||
self.choices = question.get("choices", [])
|
||||
# Don't restrict choices if there's none specified
|
||||
self.choices = question.get("choices", None)
|
||||
self.pattern = question.get("pattern", self.pattern)
|
||||
self.ask = question.get("ask", {"en": self.name})
|
||||
self.help = question.get("help")
|
||||
|
|
Loading…
Add table
Reference in a new issue