Issue Bug Closed

#77513Relation handler workspace bug for types different to inline

Gleb Levitin 08/16/16, 11:01 updated 12/11/21, 13:00

Description

Relation handler replaces the UID of relativized record by the UID of the original one only for the type inline and not for other types (for example select).

SYSEXT:core/Classes/Database/RelationHandler.php

..........

if ($configuration['type'] !== 'inline' || empty($configuration['foreign_table']) || !empty($configuration['foreign_field'])
    || !empty($configuration['MM']) || count($this->tableArray) !== 1 || empty($this->tableArray[$configuration['foreign_table']])
    || (int)$GLOBALS['BE_USER']->workspace === 0 || !BackendUtility::isTableWorkspaceEnabled($configuration['foreign_table'])) {
    return;
}

..........

$item['id'] = $this->getLiveDefaultId($item['table'], $item['id']);

..........

This results in display error and does not allow workspace publication for records containing relation types different to inline.

Reviews 0

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