diff --git a/Classes/Hooks/Tca/Label.php b/Classes/Hooks/Tca/Label.php index fed30c4c..ad12c81b 100755 --- a/Classes/Hooks/Tca/Label.php +++ b/Classes/Hooks/Tca/Label.php @@ -12,7 +12,6 @@ use TYPO3\CMS\Backend\Utility\BackendUtility; use TYPO3\CMS\Core\Utility\GeneralUtility; -use TYPO3\CMS\Extbase\Utility\DebuggerUtility; /** * Dynamic label of the address record based on tsconfig @@ -30,7 +29,12 @@ public function getAddressLabel(array &$params): void return; } - $row = BackendUtility::getRecord('tt_address', (int) $params['row']['uid']); + if (is_numeric($params['row']['uid'])) { + $row = BackendUtility::getRecord('tt_address', (int) $params['row']['uid']); + } else { + $row = $params['row']; + } + $configuration = $this->getConfiguration((int) $row['pid']); if (!$configuration) { return;