Project

General

Profile

Bug #88711 ยป 88711_clipboard.patch

Ivan Dharma Kartolo, 2019-10-14 15:08

View differences:

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 {
    (1-1/1)