Closed sypets closed 6 years ago
The breaking change no 70132 ("FormEngine custom functions") in the TYPO3 core 7.6 suggests using 'flexParentDatabaseRow' instead of 'row' for retrieving the full parent database row in a userFunc / itemsProcFunc.
https://wiki.typo3.org/TYPO3.CMS/Releases/7.6/Breaking#Breaking:_.2370132_-_FormEngine_custom_functions
This will not work, if compatibility6 is installed.
plugin.tx_ttaddress_pi1 { templatePath = fileadmin/template/ext/tt_address/ defaultTemplateFileName = default_hcard.htm }
mkdir -p fileadmin/template/ext/tt_address/ cp typo3conf/ext/tt_address/res/default_hcard.htm fileadmin/template/ext/tt_address/ cp typo3conf/ext/tt_address/res/default_hcard.htm fileadmin/template/ext/tt_address/default_hcard2.htm
A dropdown list should appear with the 2 available files.
Only default item in list displayed.
Deinstall compatibility6 and try again
https://github.com/FriendsOfTYPO3/tt_address/blob/60eed630ee66663e63422f9f89949bb5896e4731/Classes/Hooks/Tca/AddFilesToSelector.php#L41
$params['flexParentDatabaseRow']['pid'] will be empty. The same problem appears in other extensions if they use the same mechanism.
Problem description
The breaking change no 70132 ("FormEngine custom functions") in the TYPO3 core 7.6 suggests using 'flexParentDatabaseRow' instead of 'row' for retrieving the full parent database row in a userFunc / itemsProcFunc.
https://wiki.typo3.org/TYPO3.CMS/Releases/7.6/Breaking#Breaking:_.2370132_-_FormEngine_custom_functions
This will not work, if compatibility6 is installed.
Reproduce
Expected result
A dropdown list should appear with the 2 available files.
Actual result
Only default item in list displayed.
Confirm
Deinstall compatibility6 and try again
Reason for problem
https://github.com/FriendsOfTYPO3/tt_address/blob/60eed630ee66663e63422f9f89949bb5896e4731/Classes/Hooks/Tca/AddFilesToSelector.php#L41
$params['flexParentDatabaseRow']['pid'] will be empty. The same problem appears in other extensions if they use the same mechanism.