Skip to content
  • Benni Mack's avatar
    [BUGFIX] Improve loading of related records in Backend UI · a22be10b
    Benni Mack authored and Christian Kuhn's avatar Christian Kuhn committed
    
    
    This change uses RelationHandler for foreign_table / allowed and MM
    in BackendUtility::getProcessedValue in a consistent way.
    
    In addition, the RelationHandler now fetches the full
    record by default and adds this to the processed array, making
    fewer queries to the database by fetching each record
    fully directly.
    
    Some bugs are fixed with that:
    * FAL images (as in all inline fields) in list module now have the correct order
    * Fewer DB queries when fetching relations in Group field in FormEngine
    
    Setting the option in RelationHandler to fetch all fields by default
    avoids unneeded calls in general when fetching the records.
    
    Resolves: #94651
    Releases: master
    Change-Id: I8261a0c2657b9b71ae7cdc686ee43eaa7461c8b6
    Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/70117
    Tested-by: default avatarcore-ci <typo3@b13.com>
    Tested-by: default avatarOliver Bartsch <bo@cedev.de>
    Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
    Reviewed-by: default avatarOliver Bartsch <bo@cedev.de>
    Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
    a22be10b