Commit a854bd24 authored by Michael Oehlhof's avatar Michael Oehlhof Committed by Frank Nägler
Browse files

[BUGFIX] Listview: Display parent field of categories

Resolves: #72311
Releases: master, 7.6
Change-Id: I47b19ccb5e74c5755630dba3626dad29b7b24fc7
Reviewed-on: https://review.typo3.org/50274


Tested-by: default avatarTYPO3com <no-reply@typo3.com>
Reviewed-by: Kurt Ludikovsky's avatarKurt Ludikovsky <kurt.ludikovsky@ludikovsky.at>
Tested-by: Kurt Ludikovsky's avatarKurt Ludikovsky <kurt.ludikovsky@ludikovsky.at>
Reviewed-by: Frank Nägler's avatarFrank Naegler <frank.naegler@typo3.org>
Tested-by: Frank Nägler's avatarFrank Naegler <frank.naegler@typo3.org>
parent b4aa94cd
......@@ -227,10 +227,10 @@ abstract class AbstractRecordList
$colType = ($colType === 'th') ? 'th' : 'td';
$noWrap = $this->no_noWrap ? '' : ' nowrap="nowrap"';
// Start up:
$parent = isset($data['parent']) ? (int)$data['parent'] : 0;
$l10nParent = isset($data['_l10nparent_']) ? (int)$data['_l10nparent_'] : 0;
$out = '
<!-- Element, begin: -->
<tr ' . $rowParams . ' data-uid="' . (int)$data['uid'] . '" data-l10nparent="' . $parent . '">';
<tr ' . $rowParams . ' data-uid="' . (int)$data['uid'] . '" data-l10nparent="' . $l10nParent . '">';
// Show icon and lines
if ($this->showIcon) {
$out .= '
......
......@@ -1007,7 +1007,7 @@ class DatabaseRecordList extends AbstractDatabaseRecordList
&& isset($GLOBALS['TCA'][$table]['ctrl']['transOrigPointerField'])
&& !isset($GLOBALS['TCA'][$table]['ctrl']['transOrigPointerTable'])
) {
$theData['parent'] = $row[$GLOBALS['TCA'][$table]['ctrl']['transOrigPointerField']];
$theData['_l10nparent_'] = $row[$GLOBALS['TCA'][$table]['ctrl']['transOrigPointerField']];
}
$rowOutput .= $this->addElement(1, $theIcon, $theData, $row_bgColor);
// Finally, return table row element:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment