From 34463fc0c00e7569d15838857b86d5063688aa3a Mon Sep 17 00:00:00 2001 From: Kevin Cooper Date: Wed, 11 Oct 2023 15:56:46 -0400 Subject: [PATCH] 12492: don't attempt to render non-existent child --- app/decorators/odk/qing_group_decorator.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/decorators/odk/qing_group_decorator.rb b/app/decorators/odk/qing_group_decorator.rb index 46d7760e87..5638fbb420 100644 --- a/app/decorators/odk/qing_group_decorator.rb +++ b/app/decorators/odk/qing_group_decorator.rb @@ -174,6 +174,8 @@ def group_hint_tag(xpath) end def main_body_tags(xpath) + return +"" unless visible_children.present? + # If this is a multilevel fragment, we are supposed to render just one of the subqings. %> if multilevel_fragment? visible_children[0].body_tags(group: self, xpath_prefix: xpath)