Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add empty questionnaire response items for repeat groups without answers #17

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2023-2024 Google LLC
* Copyright 2023-2025 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -953,13 +953,10 @@ internal fun QuestionnaireItemComponent.createQuestionnaireResponseItem():
) {
this.copyNestedItemsToChildlessAnswers(this@createQuestionnaireResponseItem)
} else if (
[email protected] == Questionnaire.QuestionnaireItemType.GROUP &&
!repeats
[email protected] == Questionnaire.QuestionnaireItemType.GROUP
) {
[email protected] {
if (!it.isRepeatedGroup) {
this.addItem(it.createQuestionnaireResponseItem())
}
this.addItem(it.createQuestionnaireResponseItem())
}
}
}
Expand Down
Loading