Don't restrict choices if there's no choices specified

This commit is contained in:
theo@manjaro 2022-07-20 11:24:42 +02:00
parent 686c372baf
commit 31bbc026fd

View file

@ -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")