trikoder/trim

ReverseRelationName in inccluded admin form element

Opened this issue · 1 comments

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();

Added pull request #18