From 3ade97c880a40cd6dcaac2e94d6a13a669eebd93 Mon Sep 17 00:00:00 2001 From: Sebastian Manger <s.manger@gmx.ch> Date: Thu, 21 Dec 2017 15:09:50 +0100 Subject: [PATCH] 1693 Display top labels only if no childs are selected * Important for old, 'migrated' cases --- apps/summary/parsers.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/summary/parsers.py b/apps/summary/parsers.py index dbca4230b..f4cc6017c 100644 --- a/apps/summary/parsers.py +++ b/apps/summary/parsers.py @@ -167,6 +167,10 @@ class QuestionnaireParser(ConfiguredQuestionnaire): selected_children_keyword, {} )[0] except (IndexError, KeyError): + yield { + 'url': value[1], + 'text': child_text + } continue # Load the configured question for the children and get their -- GitLab