Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • C CMS
  • Project information
    • Project information
    • Activity
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Graph
    • Compare revisions
    • Locked files
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Model experiments
  • Activity
  • Graph
  • Jobs
  • Commits
Collapse sidebar
  • typo3typo3
  • CI
  • CMS
  • Repository
  • cms
  • ..
  • DataHandler
  • HookTest.php
Find file Blame History Permalink
  • Thomas Hohn's avatar
    [BUGFIX] Coalesce hook calls in DataHandler::processRemapStack() · 0dfac264
    Thomas Hohn authored Feb 06, 2017 and Oliver Hader's avatar Oliver Hader committed Mar 30, 2017
    DataHandler's hook processDatamap_afterDatabaseOperations is processed
    in two ways. In case modifications do not contain any new relation that
    just has been created, the hook is executed directly. If that's not the
    case, executing this hook is deferred and will happen after the remap
    stack has been processed.
    
    Calling the hook directly happens exactly once for each modified record,
    where invocations in DataHandler::processRemapStack() might happen more
    than once, depending on the amount of relation fields that contain new
    references and have been remapped.
    
    This change coalesces these invocations which results that the hooks
    processDatamap_afterDatabaseOperations is exactly called once for each
    modified record - which is the expected behavior.
    
    Change-Id: Ib7e65ce170c8f9ba8f7577b79073b1ed9213a0b9
    Resolves: #79635
    Releases: master, 7.6
    Reviewed-on: https://review.typo3.org/51552
    
    
    Tested-by: default avatarTYPO3com <no-reply@typo3.com>
    Reviewed-by: default avatarMarkus Klein <markus.klein@typo3.org>
    Reviewed-by: default avatarThomas Hohn <thomas@hohn.dk>
    Tested-by: default avatarThomas Hohn <thomas@hohn.dk>
    Reviewed-by: default avatarFrank Naegler <frank.naegler@typo3.org>
    Tested-by: default avatarOliver Hader <oliver.hader@typo3.org>
    Reviewed-by: default avatarOliver Hader <oliver.hader@typo3.org>
    0dfac264