Merge pull request #1786 from Salamandar/fix_readonly_question

Fix readonly questions (display_text, etc)
This commit is contained in:
Alexandre Aubin 2024-02-29 17:17:31 +01:00 committed by GitHub
commit eaa6b2efc5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1168,6 +1168,9 @@ def app_install(
# If packaging_format v2+, save all install questions as settings # If packaging_format v2+, save all install questions as settings
if packaging_format >= 2: if packaging_format >= 2:
for question in questions: for question in questions:
# Except readonly "questions" that don't even have a value
if question.readonly:
continue
# Except user-provider passwords # Except user-provider passwords
# ... which we need to reinject later in the env_dict # ... which we need to reinject later in the env_dict
if question.type == "password": if question.type == "password":