Merge pull request #1478 from theo-is-taken/tag-fix

App Config Panel : Don't restrict choices if there's no choices specified
This commit is contained in:
Alexandre Aubin 2022-08-06 10:54:33 +02:00 committed by GitHub
commit 92a751ed84
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -702,7 +702,8 @@ class Question:
self.default = question.get("default", None) self.default = question.get("default", None)
self.optional = question.get("optional", False) self.optional = question.get("optional", False)
self.visible = question.get("visible", None) 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.pattern = question.get("pattern", self.pattern)
self.ask = question.get("ask", {"en": self.name}) self.ask = question.get("ask", {"en": self.name})
self.help = question.get("help") self.help = question.get("help")