Bug #93574
closedTCA group db with minitems = 1 cannot be fulfilled
100%
Description
I have a TCA field with minitems = 1 (test) and a field with minitems = 1 and size = 1 (test_size).
'test' => [
'exclude' => true,
'label' => 'Test with minitems',
'config' => [
'type' => 'group',
'internal_type' => 'db',
'allowed' => 'pages',
'minitems' => 1,
],
],
'test_size' => [
'exclude' => true,
'label' => 'Test with minitems (size 1)',
'config' => [
'type' => 'group',
'internal_type' => 'db',
'allowed' => 'pages',
'minitems' => 1,
'size' => 1,
],
],
With the TCA field "test" the condition only becomes true if you click on the word "Spielwiese", otherwise you cannot save. (see image)
With the TCA field "test_size" I have not found a way to fulfill the condition, so you can never save the entry.
I only have this bug in version 10.4.13. The bug does not exist in version 10.4.12.
Files
Updated by Torben Hansen over 3 years ago
- Category set to FormEngine aka TCEforms
- Is Regression set to Yes
Updated by Torben Hansen over 3 years ago
Possible this is related to https://review.typo3.org/c/Packages/TYPO3.CMS/+/67292
Updated by varioous OG over 3 years ago
Can confirm this since 10.4.13.
Also in FlexForm configured Custom Content Elements this happens.
<icon>
<TCEforms>
<label>Icon</label>
<config>
<type>group</type>
<internal_type>db</internal_type>
<appearance>
<elementBrowserType>file</elementBrowserType>
<elementBrowserAllowed>png,svg</elementBrowserAllowed>
</appearance>
<allowed>sys_file</allowed>
<size>1</size>
<minitems>0</minitems>
<maxitems>1</maxitems>
<show_thumbs>1</show_thumbs>
</config>
</TCEforms>
</icon>
Updated by Hannes Bochmann over 3 years ago
Can confirm, too. Switching from minitems=1 to eval=required is a workaround for the moment.
Updated by Oliver Eglseder over 3 years ago
+1 in FlexForms, but eval=required does not work as a workaround here. Also, maxitems=1 makes the validation fail.
Updated by Peter Kraume over 3 years ago
I can also confirm this issue. Downgrading to 10.4.12 solves the problem.
Updated by Christian Buelter over 3 years ago
I can confirm this issue. See also https://github.com/teaminmedias-pluswerk/ke_search/issues/395
Updated by Gerrit Code Review over 3 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/68257
Updated by Gerrit Code Review over 3 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/68257
Updated by Jörn Wagner over 3 years ago
Oliver Eglseder wrote in #note-6:
+1 in FlexForms, but eval=required does not work as a workaround here. Also, maxitems=1 makes the validation fail.
Can confirm as well in 10.4.13 and downgrading to 10.4.12 helps. We need both minitems=1 and maxitems=1 for several elements.
Updated by Gerrit Code Review over 3 years ago
Patch set 1 for branch 10.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/68316
Updated by Andreas Fernandez over 3 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 920aed9df3e3abb39f15dfdd663f005f3ee6bb70.
Updated by Georg Ringer over 3 years ago
- Related to Bug #93699: begroup pagetypes_select always has validation error added