Project

General

Profile

Actions

Bug #20422

closed

TCEForm does not replace the existing element if adding a new element to a field with maxitems=1

Added by Benni Mack over 15 years ago. Updated about 11 years ago.

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

0%

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

Description

If you want to change a select-field in TCEforms with only one item (like the Storage Folder) where there is only one item allowed.

Steps to reproduce:

  • Edit the page properties
  • Select a page for a "storage folder" from the element browser
  • Select another item from the element browser, you'll get an error because there are no two items in the list (although you only see one).
  • Once you want to remove the first element, both are gone and you have to open up the element browser again

With this patch the second value replaces the first one when only one is allowed (maxItems).

(issue imported from #M11087)


Files

replace_single_element.patch (2.34 KB) replace_single_element.patch Administrator Admin, 2009-05-14 17:21
11087_v2.diff (3.32 KB) 11087_v2.diff Administrator Admin, 2009-11-16 21:53
11087_v3.diff (4.52 KB) 11087_v3.diff Administrator Admin, 2010-10-17 16:18

Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #17621: Insertion of more than one items by the Element Browser is allowed when it shouldn'tClosedBenni Mack2007-09-19

Actions
Related to TYPO3 Core - Bug #20482: with Fix for #20422 and #20422 the Element Browser doesn't work with FlexformsClosed2009-05-20

Actions
Actions #1

Updated by Steffen Kamper over 15 years ago

the patch doesn't work now for selects with more than 1 as maxitems.

Check the access selecter for fe_groups in tt_content, it's not possible to select more than one group.

Actions #2

Updated by Oliver Hader over 15 years ago

Due to the recent reports of misbehaviours in fields with the possibility to select more than one element, I've reverted the changes from SVN for the time being:
  • TYPO3_4-2 (rev. 5480)
  • Trunk (rev. 5481)
Actions #3

Updated by Michael Stucki over 15 years ago

Changing the status to new. Benni, are you still taking care of it? Otherwise, please unassign from yourself.

Actions #4

Updated by Steffen Gebert about 15 years ago

Could you test v2, which is linted? After linting, it is working in Opera too, which didn't work before.

I had no problem with the access tab in FF or IE6

Actions #5

Updated by Benni Mack about 15 years ago

Hey Steffen.

What is "linting"? Anyways, do you want to send it to the core list?

thx.

Actions #7

Updated by Alexander Opitz over 11 years ago

  • Status changed from Accepted to Needs Feedback
  • Target version deleted (-1)

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

Actions #8

Updated by Alexander Opitz about 11 years ago

  • Status changed from Needs Feedback to Closed
  • Assignee deleted (Benni Mack)
  • Is Regression set to No

No feedback for over 90 days.

Actions

Also available in: Atom PDF