core icon indicating copy to clipboard operation
core copied to clipboard

Can't navigate to parent content when WYSIWYG is set to 'CODE'

Open jorith88 opened this issue 12 years ago • 2 comments

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:

  1. Open the demo.dotcms.com admin
  2. Navigate to Content -> Comments
  3. Open one of the comments
  4. Make sure that the WSYWYG field type is set to 'WYSIWYG'
  5. Click on the Relationships tab and try to open the parent content
  6. *_The parent content will be opened correctly*_
  7. Click on Cancel to go back to the child contentlet
  8. Click on the Content tab and set the WYSIWYG type to 'CODE'
  9. Click on the Relationships tab and try to open the parent content
  10. *_Nothing happens. The browser console shows an error: 'Uncaught TypeError: Cannot read property 'remove' of undefined'*_

*Tested in Chrome 36 (Windows)

jorith88 avatar Aug 05 '14 07:08 jorith88

Pull request: https://github.com/dotCMS/dotCMS/pull/6067

oarrietadotcms avatar Aug 05 '14 16:08 oarrietadotcms

Fixed, tested on the latest code of the master repo // H2 // FF

bryanboza avatar Aug 07 '14 15:08 bryanboza