Empty class selector crashes Update image dialog box
plugin.close() command that comes later to be executed. In turn this causes the dialog to be reloaded instead of being closed eventually leading to an error about the form token being invalid (a symptom which is quite hard to relate to the original cause ;-) ).
A simple test on the number of options in the selector prevents this error.
Updated by Francois Suter over 9 years ago
How to reproduce:
- make sure that the class selector is enabled for images in the RTE
- select an image and choose "Modify image"
- no need to actually change anything, just close on the "Update" button
- the window does not close and display the security token error.