Skip to content

Commit

Permalink
[BUGFIX] Fix warning in BackendUtility->getRecordTitle
Browse files Browse the repository at this point in the history
Resolves: #95687
Releases: master
Change-Id: If4fde4dcac49e043b60686141a5b412c88fc9ade
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/71874
Tested-by: core-ci <typo3@b13.com>
Tested-by: Jochen <rothjochen@gmail.com>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Guido Schmechel <guido.schmechel@brandung.de>
Reviewed-by: Oliver Hader <oliver.hader@typo3.org>
Reviewed-by: Jochen <rothjochen@gmail.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
  • Loading branch information
nhovratov authored and lolli42 committed Oct 19, 2021
1 parent 0739479 commit 346cd70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion typo3/sysext/backend/Classes/Utility/BackendUtility.php
Original file line number Diff line number Diff line change
Expand Up @@ -1446,7 +1446,7 @@ public static function getRecordTitle($table, $row, $prep = false, $forceResult
foreach ($altFields as $fN) {
$recordTitle = trim(strip_tags((string)($row[$fN] ?? '')));
if ($recordTitle !== '') {
$recordTitle = self::getProcessedValue($table, $fN, $recordTitle, 0, false, false, $row['uid']);
$recordTitle = self::getProcessedValue($table, $fN, $recordTitle, 0, false, false, $row['uid'] ?? 0);
if (!($GLOBALS['TCA'][$table]['ctrl']['label_alt_force'] ?? false)) {
break;
}
Expand Down

0 comments on commit 346cd70

Please sign in to comment.