diff --git a/typo3/sysext/linkvalidator/Classes/Controller/LinkValidatorController.php b/typo3/sysext/linkvalidator/Classes/Controller/LinkValidatorController.php index 0a6f5ca93db89b45e30c4cdb1e778a51e857280f..bc0c6bc1e38bd61d8980e37fdc2f337929090f47 100644 --- a/typo3/sysext/linkvalidator/Classes/Controller/LinkValidatorController.php +++ b/typo3/sysext/linkvalidator/Classes/Controller/LinkValidatorController.php @@ -371,12 +371,14 @@ class LinkValidatorController $hookObj = $this->linktypeRegistry->getLinktype($row['link_type'] ?? ''); // Try to resolve the field label from TCA - if ($GLOBALS['TCA'][$table]['columns'][$row['field']]['label'] ?? false) { + if ($GLOBALS['TCA'][$table]['types'][$row['element_type']]['columnsOverrides'][$row['field']]['label'] ?? false) { + $fieldLabel = $languageService->sL($GLOBALS['TCA'][$table]['types'][$row['element_type']]['columnsOverrides'][$row['field']]['label']); + } elseif ($GLOBALS['TCA'][$table]['columns'][$row['field']]['label'] ?? false) { $fieldLabel = $languageService->sL($GLOBALS['TCA'][$table]['columns'][$row['field']]['label']); - // Crop colon from end if present - if (str_ends_with($fieldLabel, ':')) { - $fieldLabel = substr($fieldLabel, 0, -1); - } + } + // Crop colon from end if present + if (str_ends_with($fieldLabel, ':')) { + $fieldLabel = substr($fieldLabel, 0, -1); } return [