From 1a823eeb604336bc53873d110bb29e64f1a3f6ab Mon Sep 17 00:00:00 2001 From: mrzapp Date: Thu, 27 May 2021 06:58:34 +0200 Subject: [PATCH] Hotfix --- src/Server/Entity/Resource/SchemaBase.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Server/Entity/Resource/SchemaBase.js b/src/Server/Entity/Resource/SchemaBase.js index c873b1523..2cb3b91cb 100644 --- a/src/Server/Entity/Resource/SchemaBase.js +++ b/src/Server/Entity/Resource/SchemaBase.js @@ -352,10 +352,10 @@ class SchemaBase extends require('Common/Entity/Resource/SchemaBase') { switch(definition['@type']) { case 'ItemList': - let allowedSchemas = []; + let allowedFieldSchemas = []; for(let schemaId of definition['@options'] || []) { - allowedSchemas.push(this.translateTypeFromUISchema(schemaId)); + allowedFieldSchemas.push(this.translateTypeFromUISchema(schemaId)); } return { @@ -363,7 +363,7 @@ class SchemaBase extends require('Common/Entity/Resource/SchemaBase') { isLocalized: isLocalized, schemaId: 'array', config: { - allowedSchemas: allowedSchemas, + allowedSchemas: allowedFieldSchemas, minItems: definition['@min'] || 0, maxItems: definition['@max'] || 0 } @@ -404,10 +404,10 @@ class SchemaBase extends require('Common/Entity/Resource/SchemaBase') { }; case 'CreativeWork': - let allowedSchemas = []; + let allowedContentSchemas = []; for(let schemaId of definition['@options'] || []) { - allowedSchemas.push(this.translateTypeFromUISchema(schemaId)); + allowedContentSchemas.push(this.translateTypeFromUISchema(schemaId)); } return { @@ -415,7 +415,7 @@ class SchemaBase extends require('Common/Entity/Resource/SchemaBase') { isLocalized: isLocalized, schemaId: 'contentReference', config: { - allowedSchemas: allowedSchemas + allowedSchemas: allowedContentSchemas } };