Skip to content

Incorrect message for attribute inherited from mapped superclass #132

@stan-golembivsky

Description

@stan-golembivsky
"dependencies": {
    "@cuba-platform/react-core": "^1.0.0-alpha.0",
    "@cuba-platform/react-ui": "^1.0.0-alpha.0",
    "@cuba-platform/rest": "^1.0.0-alpha.0",

If you are trying to display entity property that was inherited from @MappedSuperclass than label will be displayed from that @MappedSuperclass

For example if we have ContactPhone entity that extends ContactItem entity and ContactItem entity has field 'contact'
than using EntityProperty component we will got ContactItem.contact in label

<EntityProperty entityName='project_ContactPhone' propertyName={ 'contcat' } ...

Result:

Value: 123123123

in messages_ru.properties file we have

ContactItem.contact=Value
ContactPhone.contact=Phone

I expect :

Phone: 123123123

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions