fixed an issue where the method used to determinate if a checkbox is checked or not

This commit is contained in:
Faraphel 2024-01-07 22:14:41 +01:00
parent 40ff08a13d
commit eff680be38

View file

@ -118,7 +118,7 @@ class BaseChoiceQuestion(BaseSurvey):
collected_data = { collected_data = {
"choices": { "choices": {
choice_id: { choice_id: {
"checked": choice_data["button"].isEnabled(), "checked": choice_data["button"].isChecked(),
"details": entry.text() if (entry := choice_data["entry"]) is not None else None "details": entry.text() if (entry := choice_data["entry"]) is not None else None
} }
for choice_id, choice_data in self.buttons_responses.items() for choice_id, choice_data in self.buttons_responses.items()