[TASK] Refactor suggest wizard JS communication
Transmitting the full $row in suggest wizard was introduced to find the relevant flex form data structure in the ajax search action to determine the suggest wizard field configuration The patch adds the data structure identifier instead, the searchAction() uses that to fetch the specified flex form data structure directly. Additionally, field values relevant for the ajax call are now signed with hmac and checked in searchAction(). Change-Id: Ibb5004d4d11487fe999072999c7ce2f847aac750 Resolves: #78616 Related: #78581 Releases: master Reviewed-on: https://review.typo3.org/50544 Reviewed-by:Wouter Wolters <typo3@wouterwolters.nl> Tested-by:
TYPO3com <no-reply@typo3.com> Reviewed-by:
Michael Oehlhof <typo3@oehlhof.de> Tested-by:
Michael Oehlhof <typo3@oehlhof.de> Reviewed-by:
Frank Naegler <frank.naegler@typo3.org> Tested-by:
Frank Naegler <frank.naegler@typo3.org>
Showing
- typo3/sysext/backend/Classes/Form/Element/AbstractFormElement.php 7 additions, 1 deletion...sext/backend/Classes/Form/Element/AbstractFormElement.php
- typo3/sysext/backend/Classes/Form/FormDataProvider/TcaFlexPrepare.php 2 additions, 0 deletions.../backend/Classes/Form/FormDataProvider/TcaFlexPrepare.php
- typo3/sysext/backend/Classes/Form/Wizard/SuggestWizard.php 106 additions, 89 deletionstypo3/sysext/backend/Classes/Form/Wizard/SuggestWizard.php
- typo3/sysext/backend/Resources/Private/Templates/Wizards/SuggestWizard.html 2 additions, 1 deletion...nd/Resources/Private/Templates/Wizards/SuggestWizard.html
- typo3/sysext/backend/Resources/Public/JavaScript/FormEngineSuggest.js 4 additions, 2 deletions.../backend/Resources/Public/JavaScript/FormEngineSuggest.js
- typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaFlexPrepareTest.php 10 additions, 0 deletions...d/Tests/Unit/Form/FormDataProvider/TcaFlexPrepareTest.php
- typo3/sysext/backend/Tests/Unit/Form/Wizard/SuggestWizardTest.php 70 additions, 0 deletions...sext/backend/Tests/Unit/Form/Wizard/SuggestWizardTest.php
- typo3/sysext/core/Classes/Utility/GeneralUtility.php 1 addition, 1 deletiontypo3/sysext/core/Classes/Utility/GeneralUtility.php
Please register or sign in to comment