#286 - Fix for content types not containing fields

This commit is contained in:
Elio Struyf
2022-03-16 19:33:39 +01:00
parent 2a48e6adf1
commit c09831e832
+8 -1
View File
@@ -242,7 +242,14 @@ export class ArticleHelper {
if (!contentType) {
contentType = contentTypes.find(ct => ct.name === DEFAULT_CONTENT_TYPE_NAME);
}
return contentType || DEFAULT_CONTENT_TYPE;
if (contentType) {
if (!contentType.fields) {
contentType.fields = DEFAULT_CONTENT_TYPE.fields;
}
}
return DEFAULT_CONTENT_TYPE;
}
/**