Review TYPO3_7-6 Merged

47971[BUGFIX] Allow maxitem=1 in TCA treeSelect again

Frans Saris CR +2 V +2 Easy +1 −1 updated 04/29/16, 12:15

Commit message

Introduced with ec7b229 #75519, it was not possible to set maxitem=1 to
TCA treeSelect. This occures e.g. on setting the parent of a
sys_category.

The reason is the "selected" array which gets initialized with all
selected items. If there is no item selected, it is initialized with an
empty value and "selected.lenght" is 1 but should be 0. Selecting a new
value is impossible now.

The proposed path checks if items are selected or not on
initialization.

Review

  • Code review CR +2
    • Frans Saris +2
  • Verified V +2
    • Frans Saris +2

Issues 1

Files 1

Review log 3

  1. Frans Saris commented on patch set 1 04/29/16, 12:14

    Cherry Picked from branch master.
  2. Frans Saris voted on patch set 1 CR +2 V +2 04/29/16, 12:15

  3. Gerrit merged patch set 1 04/29/16, 12:15