comment multiplicity

This commit is contained in:
annampak 2017-12-12 17:23:58 +02:00
parent c2c14f0f7a
commit 30d136e634
2 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ export class CompositeField extends BaseModel implements Serializable<CompositeF
this.id = item.id;
//this.multiplicity = new JsonSerializer<Multiplicity>().fromJSONObject(item.multiplicity, Multiplicity);
this.multiplicity = new Multiplicity();
this.multiplicity.max = 2;
//this.multiplicity.max = 2;
this.multiplicityItems = new JsonSerializer<CompositeField>().fromJSONArray(item.multiplicityItems, CompositeField);
return this;
}

View File

@ -33,7 +33,7 @@ export class Field extends BaseModel implements Serializable<Field>, FormGenerat
this.defaultValue = new JsonSerializer<DefaultValue>().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<Field>().fromJSONArray(item.multiplicityItems, Field);
this.data = item.data;
return this;