Skip to content
  • Christian Kuhn's avatar
    [!!!][TASK] Flex form data structure refactoring · 9b7fd177
    Christian Kuhn authored and Susanne Moog's avatar Susanne Moog committed
    Method BackendUtility::getFlexFormDS() does two things at once:
    It finds a data structure by given data (TCA, row, ...) and then
    parses it.
    This construct gives tons of headaches, since the methods never
    exposes where a specific data structure came from and the lookup
    mechanism is complex. Especially if a flex form is used in
    combination with ajax requests later, the core has massive issues
    since the location can not be found out later again.
    
    To solve that, the patch splits getFlexFormDS() into two methods:
    First method "FlexFormTools->getDataStructureIdentifier()" gets
    TCA and row and locates a specific structure. It returns an
    "identifier" that points to that unique data structure. This
    identifier can be later hand around easily.
    The second method "FlexFormTools->parseDataStructureByIdentifier()"
    then gets this identifier again, fetches the data structure the
    identifier points to, and parses it.
    
    Change-Id: I38264e8a4a6f956c12e9e50f6039d3d09af0f03a
    Resolves: #78581
    Releases: master
    Reviewed-on: https://review.typo3.org/48212
    
    
    Tested-by: default avatarTYPO3com <no-reply@typo3.com>
    Tested-by: default avatarClaus Due <claus@phpmind.net>
    Reviewed-by: default avatarWouter Wolters <typo3@wouterwolters.nl>
    Reviewed-by: default avatarSusanne Moog <susanne.moog@typo3.org>
    Tested-by: default avatarSusanne Moog <susanne.moog@typo3.org>
    9b7fd177