Skip to content

Commit

Permalink
Revert "Add empty questionnaire response items for repeat groups with…
Browse files Browse the repository at this point in the history
…out answers"

This reverts commit c6715e6.
  • Loading branch information
ndegwamartin committed Jan 15, 2025
1 parent a6dca9a commit 8d3ee4a
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -953,10 +953,13 @@ internal fun QuestionnaireItemComponent.createQuestionnaireResponseItem():
) {
this.copyNestedItemsToChildlessAnswers(this@createQuestionnaireResponseItem)
} else if (
this@createQuestionnaireResponseItem.type == Questionnaire.QuestionnaireItemType.GROUP
this@createQuestionnaireResponseItem.type == Questionnaire.QuestionnaireItemType.GROUP &&
!repeats
) {
this@createQuestionnaireResponseItem.item.forEach {
if (!it.isRepeatedGroup) {
this.addItem(it.createQuestionnaireResponseItem())
}
}
}
}
Expand Down

0 comments on commit 8d3ee4a

Please sign in to comment.