Actions
Bug #99195
closedDeferredAction may break it's callback if no promise is returned
Status:
Closed
Priority:
Must have
Assignee:
-
Category:
-
Target version:
-
Start date:
2022-11-25
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
12
PHP Version:
Tags:
Complexity:
Is Regression:
Yes
Sprint Focus:
Description
Discovered by acceptance tests:
1) RecyclerModuleCest: Delete and recover records Test Acceptance/Application/Recycler/RecyclerModuleCest.php:deleteAndRecoverRecords Step See element ".module-docheader [name=BackendUserModuleMenu]" Fail Found following JavaScript errors in the browser console: 13:26:33.607 SEVERE - http://web:8000/typo3temp/var/tests/acceptance/typo3/sysext/backend/Resources/Public/JavaScript/action-button/deferred-action.js?bust=0f9537c0e5e6da036d0e659b29ec9dd3fafa6e79 12:415 Uncaught TypeError: Cannot read properties of undefined (reading 'finally')
The issue is that the code relies on having a Promise returned which is not always given.
Actions