Issue Bug Closed

#109216DatabaseRecordLinkBuilder in some situations builds defect links due to a missing 0-to-null conversion since #102775

S P 03/12/26, 10:34 updated 08/11/26, 08:46

Description

For #102775 in https://review.typo3.org/c/Packages/TYPO3.CMS/+/82364/8/typo3/sysext/frontend/Classes/Typolink/DatabaseRecordLinkBuilder.php#85 the check on 0 was converted to a null check because the methods were type-hardened.

So far so good, but on line 80 you set it still to 0, making the null check fail. This leads to defect but still generated links in some cases that previosuly worked as intended (this is: were correctly not generated).

The explicit 0 assignments not coming from a method return must consistently converted to null assignments as well.

Reviews 2

History 811

  1. Georg Ringer commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2026-04-21T14:40:10+00:00" > 04/21/26, 14:40 </span>

    Applied in changeset commit:24aa927a780c2005f7013b19d919c60ab6738346.