Issue Bug Resolved

#109459Workspace mm relations duplicated key

Gottfried Gößler 04/01/26, 11:46 updated 11/10/26, 06:45

Description

If i try to save a record with a multiSelectSideBySide which is connected via a MM-table i get the error for an already exisitng primary key.
The error occurs if the record has a workspace but the records inside the select doesn’t have workspace activated

if i change in “app/vendor/typo3/cms-core/Classes/Database/RelationHandler.php” in the method “convertItemArray”:

//from
if ($schema->isWorkspaceAware()) {
    continue;
}
//to
if (!$schema->isWorkspaceAware()) {
    continue;
}

now its possible to safe the record.

But now have records in workspace problems with records in workspace because the mapping changes the uid of the select item to the workspace uid.
In the select are only the uids from the Live workspace (with overriden title), so the workspace record is not visible.

So i’m not sure why this mapping is required

Reviews 3

History 516

  1. Georg Ringer commented and changed status New Accepted <span data-processor="relativetime" data-value="2026-10-31T14:41:05+00:00" > 10/31/26, 14:41 </span>

    caused by #106386

  2. Gerrit Code Review pushed patch set 1 for main to change 97264 status Accepted Under Review <span data-processor="relativetime" data-value="2026-10-31T15:54:04+00:00" > 10/31/26, 15:54 </span>

  3. Benni Mack commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2026-11-09T21:25:10+00:00" > 11/09/26, 21:25 </span>

    Applied in changeset commit:f4b4868489c93bbecc5c21afd3de3163858436d4.

  4. Gerrit Code Review pushed patch set 2 for 14.3 to change 97477 status Resolved Under Review <span data-processor="relativetime" data-value="2026-11-09T21:43:07+00:00" > 11/09/26, 21:43 </span>

  5. Benni Mack commented and changed status Under Review Resolved <span data-processor="relativetime" data-value="2026-11-10T05:30:14+00:00" > 11/10/26, 05:30 </span>

    Applied in changeset commit:9f99e6484e1ec5f36f6579f8b4607f3107617ecd.

  6. Gerrit Code Review pushed patch set 2 for 13.4 to change 97493 status Resolved Under Review <span data-processor="relativetime" data-value="2026-11-10T05:30:29+00:00" > 11/10/26, 05:30 </span>

  7. Benni Mack commented and changed status Under Review Resolved <span data-processor="relativetime" data-value="2026-11-10T06:45:13+00:00" > 11/10/26, 06:45 </span>

    Applied in changeset commit:796594b5ab943b75b83fe0aff1aad7d19a9f4c71.