[BUGFIX] Restrict parent calculation for inline ajax
If a child is expanded, added or synchronized in inline ajax call, mostly only the inline tca configuration of the parent record is needed, but not the whole thing. The patch adds a dedicated InlineParentRecord data group that only calls needed data providers to achieve this. This has the huge benefit that the record is no longer fetched from db and only one single field is prepared. This improves performance of these ajax calls. Additionally, the patch solves an exception adding new image records to a new tt_content record without persisting the tt_content record before. Resolves: #70549 Releases: master Change-Id: I1312d00b77446eb89f5da3b898cdff975f057eae Reviewed-on: http://review.typo3.org/43941 Reviewed-by:Morton Jonuschat <m.jonuschat@mojocode.de> Tested-by:
Morton Jonuschat <m.jonuschat@mojocode.de> Reviewed-by:
Anja Leichsenring <aleichsenring@ab-softlab.de> Tested-by:
Anja Leichsenring <aleichsenring@ab-softlab.de>
Showing
- typo3/sysext/backend/Classes/Controller/FormInlineAjaxController.php 31 additions, 16 deletions...t/backend/Classes/Controller/FormInlineAjaxController.php
- typo3/sysext/backend/Classes/Form/FormDataCompiler.php 1 addition, 0 deletionstypo3/sysext/backend/Classes/Form/FormDataCompiler.php
- typo3/sysext/backend/Classes/Form/FormDataGroup/InlineParentRecord.php 57 additions, 0 deletions...backend/Classes/Form/FormDataGroup/InlineParentRecord.php
- typo3/sysext/backend/Classes/Form/FormDataProvider/InitializeProcessedTca.php 0 additions, 7 deletions.../Classes/Form/FormDataProvider/InitializeProcessedTca.php
- typo3/sysext/backend/Classes/Form/FormDataProvider/TcaColumnsProcessShowitem.php 10 additions, 3 deletions...asses/Form/FormDataProvider/TcaColumnsProcessShowitem.php
- typo3/sysext/backend/Tests/Unit/Form/FormDataGroup/InlineParentRecordTest.php 100 additions, 0 deletions.../Tests/Unit/Form/FormDataGroup/InlineParentRecordTest.php
- typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/InitializeProcessedTcaTest.php 0 additions, 22 deletions...Unit/Form/FormDataProvider/InitializeProcessedTcaTest.php
- typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaColumnsProcessShowitemTest.php 22 additions, 0 deletions...t/Form/FormDataProvider/TcaColumnsProcessShowitemTest.php
- typo3/sysext/core/Configuration/DefaultConfiguration.php 23 additions, 0 deletionstypo3/sysext/core/Configuration/DefaultConfiguration.php
Please register or sign in to comment