Issue Bug Closed

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

Benni Mack 05/14/09, 17:21 updated 09/09/13, 11:01

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)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.