Forráskód Böngészése

fix(core): Fix custom field relation loading edge-case

We were missing the "localeText" type from our existing work-around
for a TypeORM embedded entity loading issue.

Fixes #2708
Michael Bromley 1 éve
szülő
commit
93ca4ca62f

+ 1 - 1
packages/core/src/entity/register-custom-entity-fields.ts

@@ -155,7 +155,7 @@ function registerCustomFieldsForEntity(
 
             const relationFieldsCount = customFields.filter(f => f.type === 'relation').length;
             const nonLocaleStringFieldsCount = customFields.filter(
-                f => f.type !== 'localeString' && f.type !== 'relation',
+                f => f.type !== 'localeString' && f.type !== 'localeText' && f.type !== 'relation',
             ).length;
 
             if (0 < relationFieldsCount && nonLocaleStringFieldsCount === 0) {