Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect message for attribute inherited from mapped superclass #132

Open
stan-golembivsky opened this issue Jan 22, 2021 · 2 comments
Open

Comments

@stan-golembivsky
Copy link

"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

@vyacheslav-pushkin
Copy link
Contributor

Hi @stan-golembivsky,

I presume that's the way the description is returned from the REST API (metadata/entities)? If so, then this ticket belongs here.

@web-devel web-devel assigned plakhov and HegelPro and unassigned plakhov Feb 5, 2021
@HegelPro HegelPro transferred this issue from cuba-platform/frontend Feb 5, 2021
@HegelPro
Copy link

HegelPro commented Feb 5, 2021

@vyacheslav-pushkin , yes. These labels arrive from REST API /metadata/entities route.

@HegelPro HegelPro removed their assignment Feb 5, 2021
@HegelPro HegelPro changed the title Wrong label in EntityProperty component Wrong labels when Entities use extends Feb 5, 2021
@web-devel web-devel changed the title Wrong labels when Entities use extends Incorrect message for attribute inherited from mapped superclass Feb 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants