-
Notifications
You must be signed in to change notification settings - Fork 8
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
umbraco/backoffice/relationseditor/relations/isallowedentity 404 on add relation from search #21
Comments
Thanks, What versions are you on of Umbraco and Relation Editor? |
Umbraco version is 7.9.2 and RelationEditor package version is 1.2.3 I have found, just testing locally, that setting treeAlias to Although I'm unsure if that is the correct way to go about fixing it, I am unsure about where treeAlias is supposed to be set. I can say it appears to work. |
@lars-erik I might attempt a fix and submit a PR, if you are happy enough with that. I would need to know if my assumption on the treeAlias value matching the section is correct. I have found it to work in my testing, if that helps. |
I had the same problem (Umbraco 7.10.4 and also 7.11.1), solved by changing line 58 in relationeditor.js from:
to:
but I guess it is more a hack than a solution. Seems that the treePicker() dialog passes the searchSelected() callback an |
When trying to add a relation from search, this error is thrown. It looks like the treeAlias property is undefined.
There is also a console error
Cannot get a descendant node from a section container node without a treeAlias specified
. Is there a fix for this issue?The text was updated successfully, but these errors were encountered: