Project

General

Profile

Actions

Bug #20021

closed

Select doesn't allow comma in value

Added by Steffen Kamper over 15 years ago. Updated about 10 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2009-02-15
Due date:
% Done:

0%

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

Description

This has a reason: multiselects (select with maxitems>1) are saved as comma-seperated list.
Proceeding the value while save and read use an explode on the comma to seperate the values again.

This doesn't make sense for single selects. As they could be used also in a FCE, where the value isn't processed in an extension but passed directly to FE, usage of comma in value makes sense.

Attached patch differenciate between single and multiselect and explode the value only for selects having maxitems>1

Use attached extension for test
(issue imported from #M10442)


Files

10442.diff (1.38 KB) 10442.diff Administrator Admin, 2009-02-15 22:04
T3X_sk_test_core-0_0_0-z-200902152204.t3x (13.1 KB) T3X_sk_test_core-0_0_0-z-200902152204.t3x Administrator Admin, 2009-02-15 22:05
10442_v2.diff (2.06 KB) 10442_v2.diff Administrator Admin, 2010-01-06 14:50

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #18016: FCE-Dropdown shows Invalid Value Error when using commaClosed2008-01-18

Actions
Actions #1

Updated by Xavier Perseguers almost 13 years ago

  • Assignee deleted (Steffen Kamper)
  • Target version deleted (0)
Actions #2

Updated by Alexander Opitz over 11 years ago

  • Status changed from Accepted to Needs Feedback

The issue is very old, does this issue exists in newer versions of TYPO3 CMS (4.5 or 6.1)?

Actions #3

Updated by Alexander Opitz about 11 years ago

  • Status changed from Needs Feedback to Closed
  • Is Regression set to No

No feedback for over 90 days.

Actions #4

Updated by George Sofianos about 10 years ago

although i'm working on an old version of 4.5, i checked the code on the latest 4.5 version and this bug seems to still exist. another problem is that the patch attached on this issue is fixing single selects but it's breaking the main template in the website i'm working on.

I changed maxItems to maxitems in class.t3lib_tcemain.php which seem to fix this problem.

Actions

Also available in: Atom PDF