Issue Bug Resolved

#75145selectTree with MM table does not work without MM_opposite_field

Robert Vock 03/16/16, 14:24 updated 10/22/26, 15:45

Description

When using TCA for a select and using the renderType=‘selectTree’ it’s not possible to edit fields, which have no configuration for MM_opposite_field.

A simple example is the categories field for pages and tt_content. If you unset the MM_opposite_field, it’s not possible to edit the categories of pages and tt_content.

It’s a strange bug in TYPO3\CMS\Core\Database\RelationHandler. I am not quite sure, but I believe the bug exists in the readMM-method. When you change the MM_match_fields to tablename instead of tablenames, it works again:

Works:

config
    type = select
    renderType = selectTree
    foreign_table = tx_example_related_data
    maxitems = 9999
    MM = tx_example_mm
    MM_match_fields
        fieldname = field1
        tablename = tx_example_product
    size = 10
    treeConfig
    parentField = parent

Reviews 2

History 13

  1. Gerrit Code Review pushed patch set 1 for main to change 95866 status New Under Review 09/15/26, 21:27

  2. Gerrit Code Review pushed patch set 1 for 14.3 to change 97011 10/22/26, 15:38

  3. Georg Ringer commented and changed status Under Review Resolved done 0 % 100 % 10/22/26, 15:45

    Applied in changeset commit:f5d6006d33ef5373f278ea0e3d9d912167a2c63b.