trim icon indicating copy to clipboard operation
trim copied to clipboard

ReverseRelationName in inccluded admin form element

Open davoreric opened this issue 4 years ago • 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 https://github.com/trikoder/trim/blob/e0bf1a3cef6344481a93af4aaa251178d9588959/src/js/formElements/includedAdmin.vue#L199

Incorrect fieldName usage (it is not accounts for reverseRelationName) https://github.com/trikoder/trim/blob/e0bf1a3cef6344481a93af4aaa251178d9588959/src/js/formElements/includedAdmin.vue#L360

davoreric avatar Mar 16 '21 09:03 davoreric

Added pull request https://github.com/trikoder/trim/pull/18

davoreric avatar Mar 16 '21 10:03 davoreric