Actions
Bug #59938
closedEmpty class selector crashes Update image dialog box
Status:
Closed
Priority:
Should have
Assignee:
Category:
RTE (rtehtmlarea + ckeditor)
Target version:
Start date:
2014-06-27
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
6.2
PHP Version:
5.3
Tags:
Complexity:
easy
Is Regression:
No
Sprint Focus:
Description
If the class selector is displayed in the "Update image" dialog box, but that class selector is empty (because no classes are defined), the related JavaScript will crash when trying to determine the selected class. This then prevents the 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.
Actions