fix issue where related entites would be rendered as metadata for one box fields

This commit is contained in:
Art Lowel
2020-04-23 13:16:43 +02:00
parent adc7649820
commit facd2284d2
6 changed files with 20 additions and 5 deletions

View File

@@ -305,6 +305,7 @@ export abstract class FieldParser {
}
public setValues(modelConfig: DsDynamicInputModelConfig, fieldValue: any, forceValueAsObj: boolean = false, groupModel?: boolean) {
console.log('modelConfig.id', modelConfig.id);
if (isNotEmpty(fieldValue)) {
if (groupModel) {
// Array, values is an array
@@ -317,6 +318,7 @@ export abstract class FieldParser {
}
if (typeof fieldValue === 'object') {
modelConfig.metadataValue = fieldValue;
modelConfig.language = fieldValue.language;
modelConfig.place = fieldValue.place;
if (forceValueAsObj) {