core
core copied to clipboard
Can't navigate to parent content when WYSIWYG is set to 'CODE'
I get a Javascript error when I try to click on a parent contentlet from within a child contentlet. I only get this error when a WYSIWYG field is set to 'CODE'. Steps to reproduce:
- Open the demo.dotcms.com admin
- Navigate to Content -> Comments
- Open one of the comments
- Make sure that the WSYWYG field type is set to 'WYSIWYG'
- Click on the Relationships tab and try to open the parent content
- *_The parent content will be opened correctly*_
- Click on Cancel to go back to the child contentlet
- Click on the Content tab and set the WYSIWYG type to 'CODE'
- Click on the Relationships tab and try to open the parent content
- *_Nothing happens. The browser console shows an error: 'Uncaught TypeError: Cannot read property 'remove' of undefined'*_
*Tested in Chrome 36 (Windows)
Pull request: https://github.com/dotCMS/dotCMS/pull/6067
Fixed, tested on the latest code of the master repo // H2 // FF