Bug #24871
closedRequired select box element isn't required
100%
Description
With the following configuration, the select box isn't required (but it should as the value of the default item is empty).
$tempColumns = Array (
"tx_blabla_foobar" => Array (
"exclude" => 1,
"label" => "LLL:EXT:blabla_foobar/locallang_db.php:pages.tx_blabla_foobar",
"config" => Array (
"type" => "select",
"items" => Array (
Array("",0),
),
"foreign_table" => "tx_blabla_foobar",
"foreign_table_where" => " ORDER BY tx_blabla_foobar.uid",
"size" => 1,
"minitems" => 1,
'allowNonIdValues' => 0,
"maxitems" => 1,
)
),
This bug seems to persist since 2005 or even earlier and isn't solved yet.
Here some documentation about earlier reportings that prove what I say:
http://lists.typo3.org/pipermail/typo3-dev/2009-April/034893.html
http://www.typo3.net/forum/beitraege/extensions_schreiben/30794/
(issue imported from #M17380)
Updated by Anonymous over 13 years ago
Update:
This definition also doesn't work:
$tempColumns = Array (
"tx_blabla_foobar" => Array (
"exclude" => 1,
"label" => "LLL:EXT:blabla_foobar/locallang_db.php:pages.tx_blabla_foobar",
"config" => Array (
"type" => "select",
"items" => Array (
Array("",0),
),
"foreign_table" => "tx_blabla_foobar",
"foreign_table_where" => " ORDER BY tx_blabla_foobar.uid",
"size" => 1,
"required" => 1,
)
),
Greets
Updated by Gerrit Code Review almost 11 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/27169
Updated by Gerrit Code Review almost 11 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/27169
Updated by Gerrit Code Review over 10 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/27169
Updated by Gerrit Code Review over 10 years ago
Patch set 1 for branch TYPO3_6-1 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/28625
Updated by Benni Mack over 10 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 6cf39f6da1afd35bea333fcd7da9ab6dc0d93159.
Updated by Gerrit Code Review over 10 years ago
- Status changed from Resolved to Under Review
Patch set 1 for branch TYPO3_6-1 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/29507
Updated by Stefan Neufeind over 10 years ago
- Status changed from Under Review to Resolved
Applied in changeset 65896ee8aa3c5f9f684fc5ac31165b29abdcc525.