Bug #88711 ยป 88711_clipboard.patch
typo3/sysext/backend/Classes/Form/FormDataProvider/TcaGroup.php | ||
---|---|---|
if ($allowed[0] !== '*') {
|
||
// Only some tables, filter them:
|
||
foreach ($allowed as $tablename) {
|
||
$elementValue = key($clipboard->elFromTable($tablename));
|
||
if ($elementValue) {
|
||
list($elementTable, $elementUid) = explode('|', $elementValue);
|
||
$record = BackendUtility::getRecordWSOL($elementTable, $elementUid);
|
||
$sanitizedClipboardElements[] = [
|
||
'title' => BackendUtility::getRecordTitle($elementTable, $record),
|
||
'value' => $elementTable . '_' . $elementUid,
|
||
];
|
||
$elementValuesArray = $clipboard->elFromTable($tablename);
|
||
foreach ($elementValuesArray as $elementValue => $recordUid) {
|
||
if ($elementValue) {
|
||
list($elementTable, $elementUid) = explode('|', $elementValue);
|
||
$record = BackendUtility::getRecordWSOL($elementTable, $elementUid);
|
||
$sanitizedClipboardElements[] = [
|
||
'title' => BackendUtility::getRecordTitle($elementTable, $record),
|
||
'value' => $elementTable . '_' . $elementUid,
|
||
];
|
||
}
|
||
}
|
||
}
|
||
} else {
|