Bug #77513

Relation handler workspace bug for types different to inline

Added by Gleb Levitin about 3 years ago. Updated 6 months ago.

Status:
New
Priority:
Must have
Assignee:
-
Category:
Workspaces
Start date:
2016-08-16
Due date:
% Done:

0%

TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
medium
Is Regression:
No
Sprint Focus:

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.

History

#2 Updated by Gleb Levitin almost 3 years ago

  • Assignee set to Gleb Levitin

#3 Updated by Gleb Levitin almost 3 years ago

  • Assignee deleted (Gleb Levitin)

#4 Updated by Benni Mack 6 months ago

  • Target version changed from next-patchlevel to Candidate for patchlevel

Also available in: Atom PDF