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

ReverseRelationName in inccluded admin form element #17

Open
davoreric opened this issue Mar 16, 2021 · 1 comment
Open

ReverseRelationName in inccluded admin form element #17

davoreric opened this issue Mar 16, 2021 · 1 comment

Comments

@davoreric
Copy link
Contributor

If included admin is used with "reverseRelationName" in options then calling "setMainRelationReference" method will not find correct fieldName as is set in "reverseRelationName" options

Correct fieldName usage

const reverseRelationName = this.relation && this.relation.reverseRelationName;

Incorrect fieldName usage (it is not accounts for reverseRelationName)

const fieldName = this.resourceModel.getType();

@davoreric
Copy link
Contributor Author

Added pull request #18

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

1 participant