Bug #104299
closedMisleading message if new CType (plugin) has no label
100%
Description
If I add new Plugin Type (set as PLUGIN_TYPE_CONTENT_ELEMENT
) and let the label empty or the locallang marker is wrong, an warning message is shown in backend preview in the page module after creating an new content element and close it.
INVALID VALUE ("my_plugin")
I assumed, that something is wrong with registration/configuration of my new content type and I thought the type is not allowed. But only the missing label was the problem.
On debugging I found those check in the StandardContentPreviewRenderer.php
In cms-backend/Classes/Preview/StandardContentPreviewRenderer.php
the label for elements is checked for CType and list_type. If label is not empty it will be shown but if not then a warning message is shown. They will be rendered from locallang marker core/Resources/Private/Language/locallang_core.xlf:labels.noMatchingValue
I fixed my wrong locallang key and now everything looks good in the preview.
The message if the label is empty should be changed to find the right error more easily.
Files