Project

General

Profile

Actions

Bug #24871

closed

Required select box element isn't required

Added by Anonymous over 13 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2011-01-28
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
4.3
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

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)


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Feature #24925: Mandatory for Selectbox with TCA not possibleClosedBenni Mack2011-02-02

Actions
Actions #1

Updated by Anonymous about 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

Actions #2

Updated by Gerrit Code Review over 10 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

Actions #3

Updated by Gerrit Code Review over 10 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

Actions #4

Updated by Gerrit Code Review about 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

Actions #5

Updated by Gerrit Code Review about 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

Actions #6

Updated by Benni Mack about 10 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #7

Updated by Gerrit Code Review about 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

Actions #8

Updated by Stefan Neufeind about 10 years ago

  • Status changed from Under Review to Resolved
Actions #9

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF