-
Notifications
You must be signed in to change notification settings - Fork 96
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
1.12 GridField relation editor JavaScript error #1427
Comments
in the meantime.. if you have the issue, this works after leftandmain init.
|
In case this helps someone in debugging: |
@GuySartorelli : Hi, I have upgraded two projects to silverstripe/admin 1.12.1 and for both the error is gone and linking records work again as expected. Thanks a lot |
Awesome. Closing this issue then. |
Affected Version
Description
When using a
GridFieldConfig_RelationEditor
in combination with aGridField
there is a JavaScript error when the relationship search and link field in the CMS.The search request itself gets executed correctly and there is a 200 response.
For instance the request
http://localhost:8000/admin/pages/edit/EditForm/7/field/Categories/search?gridfield_relationsearch=tr
returns the response[{"label":"Travel","value":"Travel","id":1}]
But the dropdown of the relationEditor never appears and the spinner keeps spinning.
In the console there is the following error:
Steps to Reproduce
ArticlePage.php
replace theCheckboxSetField
with aGridFieldConfig_RelationEditor
ArticlePage
and try to link a categoryThe text was updated successfully, but these errors were encountered: