Bug #76219
closedselect with minitems=1 will not issue an error with no selection
0%
Description
I have a TCA select field with minitems=1. When no entry is selected, I get a red exclamation mark in the Tab. But I do not get an exclamation mark infront of the field and I can save the form without warning or error.
The documentation says, that the field would be validated on the server. But it appears it's not.
https://docs.typo3.org/typo3cms/TCAReference/Reference/Columns/Select/Index.html#rendertype
I tried all render-types with no luck.
When using renderType = selectCheckBox, even the red exclamation mark is missing.
I am using TYPO3 7.6.7.
Updated by Christian Kuhn almost 8 years ago
Confirmed the selectCheckBox case: this is ext:styleguide select_4 of tx_styleguide_required.
Could you add some demo TCA for the first case?
Updated by Riccardo De Contardi almost 8 years ago
are these related?
https://forge.typo3.org/issues/58520
https://forge.typo3.org/issues/67913
Updated by Robert Vock almost 8 years ago
Example TCA:
<?php $GLOBALS['TCA']['tx_example_domain_model_news']['columns']['category'] = [ 'config' => [ 'type' => 'select', 'autoSizeMax' => '30', 'foreign_table' => 'tx_example_domain_model_category', 'foreign_table_where' => 'AND tx_example_domain_model_category.sys_language_uid IN (0,-1)', 'minitems' => '1', 'maxitems' => '9999', 'MM' => 'tx_example_news_category_mm', 'multiple' => '0', 'renderType' => 'selectTree', 'size' => '10', 'treeConfig' => [ 'parentField' => 'parent_category', ], ], ];
Updated by Christian Weiske over 7 years ago
I can confirm that on 7.6.8, too.
In 7.6.10 this issue is fixed, maybe by the fix for #76388.
Updated by Robert Vock over 7 years ago
I also can confirm, that this is fixed in 7.6.10, so it's ok to close this issue.
Updated by Riccardo De Contardi over 7 years ago
- Status changed from New to Closed
Thank you for your time and findings, I am closing this issue then.
If the issue occurs again, please open a new issue with a reference to this one. Thanks