Skip to content

Commit

Permalink
Fix regression on questionnaire validation introduced in release 5.0.…
Browse files Browse the repository at this point in the history
…26 (#4321)
  • Loading branch information
evilaliv3 committed Nov 25, 2024
1 parent 920971c commit cea8792
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions client/app/src/shared/services/field-utilities.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -252,11 +252,12 @@ export class FieldUtilitiesService {
scope.submissionService.override_receivers = [];
}

let ret = false;
let ret = false, recursive_ret = false;

scope.questionnaire.steps.forEach((step: any) => {
step.enabled = this.isFieldTriggered(null, step, scope.answers, scope.score);
ret = ret || this.updateAnswers(scope, step, step.children, scope.answers);
recursive_ret = this.updateAnswers(scope, step, step.children, scope.answers);
ret = ret || recursive_ret;
});

if (scope.context) {
Expand Down

0 comments on commit cea8792

Please sign in to comment.