Skip to content

Commit

Permalink
Fixed failing formio tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandraRamanenka authored and lane-formio committed Oct 12, 2023
1 parent 42446bf commit 22b32cf
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Wizard.js
Original file line number Diff line number Diff line change
Expand Up @@ -912,6 +912,13 @@ export default class Wizard extends Webform {
return this.setNestedValue(page, submission.data, flags, changed) || changed;
}, false);

if (!flags.sanitize ||
(flags && flags.fromSubmission && (this.prefixComps.length || this.suffixComps.length) && submission._id) ||
(this.options.server && (this.prefixComps.length || this.suffixComps.length))
) {
this.mergeData(this.data, submission.data);
}

if (changed) {
this.pageFieldLogic(this.page);
}
Expand Down

0 comments on commit 22b32cf

Please sign in to comment.