use unique list ids for each submission

This commit is contained in:
Art Lowel
2020-04-29 15:00:57 +02:00
parent 2a6e0c796a
commit 766015d64c

View File

@@ -258,7 +258,7 @@ export class DsDynamicFormControlContainerComponent extends DynamicFormControlCo
if (this.isRelationship || isWrapperAroundRelationshipList) { if (this.isRelationship || isWrapperAroundRelationshipList) {
const config = this.model.relationshipConfig || this.model.relationship; const config = this.model.relationshipConfig || this.model.relationship;
const relationshipOptions = Object.assign(new RelationshipOptions(), config); const relationshipOptions = Object.assign(new RelationshipOptions(), config);
this.listId = 'list-' + relationshipOptions.relationshipType; this.listId = `list-${this.model.submissionId}-${relationshipOptions.relationshipType}`;
this.setItem(); this.setItem();
if (isWrapperAroundRelationshipList || !this.model.repeatable) { if (isWrapperAroundRelationshipList || !this.model.repeatable) {