comment multiplicity
This commit is contained in:
parent
c2c14f0f7a
commit
30d136e634
|
@ -18,7 +18,7 @@ export class CompositeField extends BaseModel implements Serializable<CompositeF
|
||||||
this.id = item.id;
|
this.id = item.id;
|
||||||
//this.multiplicity = new JsonSerializer<Multiplicity>().fromJSONObject(item.multiplicity, Multiplicity);
|
//this.multiplicity = new JsonSerializer<Multiplicity>().fromJSONObject(item.multiplicity, Multiplicity);
|
||||||
this.multiplicity = new Multiplicity();
|
this.multiplicity = new Multiplicity();
|
||||||
this.multiplicity.max = 2;
|
//this.multiplicity.max = 2;
|
||||||
this.multiplicityItems = new JsonSerializer<CompositeField>().fromJSONArray(item.multiplicityItems, CompositeField);
|
this.multiplicityItems = new JsonSerializer<CompositeField>().fromJSONArray(item.multiplicityItems, CompositeField);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
|
@ -33,7 +33,7 @@ export class Field extends BaseModel implements Serializable<Field>, FormGenerat
|
||||||
this.defaultValue = new JsonSerializer<DefaultValue>().fromJSONObject(item.defaultValue, DefaultValue);
|
this.defaultValue = new JsonSerializer<DefaultValue>().fromJSONObject(item.defaultValue, DefaultValue);
|
||||||
this.value = this.defaultValue.value && !item.value ? this.defaultValue.value : item.value;
|
this.value = this.defaultValue.value && !item.value ? this.defaultValue.value : item.value;
|
||||||
this.multiplicity = new Multiplicity();
|
this.multiplicity = new Multiplicity();
|
||||||
this.multiplicity.max = 2;
|
//this.multiplicity.max = 2;
|
||||||
this.multiplicityItems = new JsonSerializer<Field>().fromJSONArray(item.multiplicityItems, Field);
|
this.multiplicityItems = new JsonSerializer<Field>().fromJSONArray(item.multiplicityItems, Field);
|
||||||
this.data = item.data;
|
this.data = item.data;
|
||||||
return this;
|
return this;
|
||||||
|
|
Loading…
Reference in New Issue