[BUGFIX] Make columnsOnly table-aware
Defining columnsOnly, which is used by the EditDocumentController to instruct the FormEngine to only render a subset of available fields for records is now table aware. This allows to render records from different tables in the same request, while respecting the fields to be rendered on a per-table basis. The "columnsOnly" parameter therefore now requires the fields as array under the corresponding table name: &columnsOnly[pages][0]=title A backwards-compatibility layer is in place, migrating the previous syntax to the new one by adding the configured fields for the tables from the edit configuration. Resolves: #104108 Releases: main, 12.4 Change-Id: I46500100eb369ad117a2cf5c61a9811c6fd5c7a3 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/84711 Tested-by:Jochen Roth <rothjochen@gmail.com> Reviewed-by:
Oliver Bartsch <bo@cedev.de> Tested-by:
Oliver Bartsch <bo@cedev.de> Tested-by:
Christian Kuhn <lolli@schwarzbu.ch> Tested-by:
core-ci <typo3@b13.com> Reviewed-by:
Christian Kuhn <lolli@schwarzbu.ch> Reviewed-by:
Jochen Roth <rothjochen@gmail.com>
Showing
- Build/phpstan/phpstan-baseline.neon 0 additions, 5 deletionsBuild/phpstan/phpstan-baseline.neon
- typo3/sysext/backend/Classes/Controller/EditDocumentController.php 42 additions, 24 deletions...ext/backend/Classes/Controller/EditDocumentController.php
- typo3/sysext/backend/Classes/ViewHelpers/Link/EditRecordViewHelper.php 5 additions, 3 deletions...backend/Classes/ViewHelpers/Link/EditRecordViewHelper.php
- typo3/sysext/backend/Classes/ViewHelpers/Uri/EditRecordViewHelper.php 4 additions, 2 deletions.../backend/Classes/ViewHelpers/Uri/EditRecordViewHelper.php
- typo3/sysext/backend/Tests/Functional/ViewHelpers/Link/EditRecordViewHelperTest.php 3 additions, 2 deletions.../Functional/ViewHelpers/Link/EditRecordViewHelperTest.php
- typo3/sysext/backend/Tests/Functional/ViewHelpers/Uri/EditRecordViewHelperTest.php 3 additions, 2 deletions...s/Functional/ViewHelpers/Uri/EditRecordViewHelperTest.php
- typo3/sysext/backend/Tests/Unit/Controller/EditDocumentControllerTest.php 84 additions, 9 deletions...kend/Tests/Unit/Controller/EditDocumentControllerTest.php
- typo3/sysext/core/Documentation/Changelog/13.2/Deprecation-104108-TableDependantDefinitionOfColumnsOnly.rst 115 additions, 0 deletions...recation-104108-TableDependantDefinitionOfColumnsOnly.rst
- typo3/sysext/info/Classes/Controller/PageInformationController.php 3 additions, 1 deletion...ext/info/Classes/Controller/PageInformationController.php
- typo3/sysext/info/Classes/Controller/TranslationStatusController.php 6 additions, 2 deletions...t/info/Classes/Controller/TranslationStatusController.php
- typo3/sysext/linkvalidator/Classes/Controller/LinkValidatorController.php 3 additions, 1 deletion...kvalidator/Classes/Controller/LinkValidatorController.php
Please register or sign in to comment