From 30d136e63426a3f54abc0cfd1f2cfc6ebcfccccc Mon Sep 17 00:00:00 2001 From: annampak Date: Tue, 12 Dec 2017 17:23:58 +0200 Subject: [PATCH] comment multiplicity --- dmp-frontend/src/app/models/CompositeField.ts | 2 +- dmp-frontend/src/app/models/Field.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dmp-frontend/src/app/models/CompositeField.ts b/dmp-frontend/src/app/models/CompositeField.ts index 241bf52b1..90c08aff3 100644 --- a/dmp-frontend/src/app/models/CompositeField.ts +++ b/dmp-frontend/src/app/models/CompositeField.ts @@ -18,7 +18,7 @@ export class CompositeField extends BaseModel implements Serializable().fromJSONObject(item.multiplicity, Multiplicity); this.multiplicity = new Multiplicity(); - this.multiplicity.max = 2; + //this.multiplicity.max = 2; this.multiplicityItems = new JsonSerializer().fromJSONArray(item.multiplicityItems, CompositeField); return this; } diff --git a/dmp-frontend/src/app/models/Field.ts b/dmp-frontend/src/app/models/Field.ts index 080cb01e8..635e58f89 100644 --- a/dmp-frontend/src/app/models/Field.ts +++ b/dmp-frontend/src/app/models/Field.ts @@ -33,7 +33,7 @@ export class Field extends BaseModel implements Serializable, FormGenerat this.defaultValue = new JsonSerializer().fromJSONObject(item.defaultValue, DefaultValue); this.value = this.defaultValue.value && !item.value ? this.defaultValue.value : item.value; this.multiplicity = new Multiplicity(); - this.multiplicity.max = 2; + //this.multiplicity.max = 2; this.multiplicityItems = new JsonSerializer().fromJSONArray(item.multiplicityItems, Field); this.data = item.data; return this;