Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • typo3 typo3
  • Project information
    • Project information
    • Activity
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
    • Locked files
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
    • Model experiments
  • Analytics
    • Analytics
    • CI/CD
    • Insights
    • Repository
  • Activity
  • Graph
  • Jobs
  • Commits
Collapse sidebar
  • typo3typo3
  • typo3typo3
  • Repository
  • typo3
  • ..
  • Repository
  • PageRepository.php
Find file Blame History Permalink
  • André Buchmann's avatar
    [BUGFIX] Apply empty values in language-overlay · 12da9f62
    André Buchmann authored May 12, 2022 and Benni Mack's avatar Benni Mack committed Jun 08, 2022
    Some default fields (e.g. tt_content.bodytext) can contain null values.
    TYPO3 first fetches the data in the default language and then overlays
    the rows data with the translation values. The overlay method inspects
    each array item with the php isset() function. This validates not only
    the existence of the array key, but also the values. null and
    false values evaluated as false. Empty strings evaluate as true.
    This leads to inconsistent output in the frontend.
    
    The overlay now valides only the array key existence and applies also
    empty values.
    
    Resolves: #97616
    Releases: main, 11.5, 10.4
    Change-Id: I4b01c52e9ac7adde786b3395bce870bc0a354b58
    Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/74632
    
    
    Tested-by: default avatarcore-ci <typo3@b13.com>
    Tested-by: default avatarOliver Bartsch <bo@cedev.de>
    Tested-by: default avatarBenni Mack <benni@typo3.org>
    Reviewed-by: default avatarOliver Bartsch <bo@cedev.de>
    Reviewed-by: default avatarOliver Klee <typo3-coding@oliverklee.de>
    Reviewed-by: default avatarBenni Mack <benni@typo3.org>
    12da9f62