Bug #86960
closed"Delete" Button in template-contextmenu not working
0%
Description
When you try to delete an ext-Template directly by clicking its icon, the delete button is ignored.
In the Chrome console the ContextMenuActions.js throws this error:
Uncaught TypeError: Cannot read property 'button.cancel' of undefined
The other options seems to work.
Files
Updated by Riccardo De Contardi almost 6 years ago
I can confirm the issue on 9.5.4 and I confirm the error in Chrome console
Cannot read property 'button.cancel' of undefined at jQuery.fn.init.e.deleteRecord (ContextMenuActions.js?bust=0d622987baa320dedc674a2be3fc1e5bb282361b:13) at HTMLAnchorElement.<anonymous> (ContextMenu.js?bust=0d622987baa320dedc674a2be3fc1e5bb282361b:13) at HTMLAnchorElement.dispatch (jquery.js?bust=0d622987baa320dedc674a2be3fc1e5bb282361b:5183) at HTMLAnchorElement.elemData.handle (jquery.js?bust=0d622987baa320dedc674a2be3fc1e5bb282361b:4991)
Updated by Frank Nägler over 5 years ago
- Status changed from New to Accepted
confirmed, and found one other issue in this area:
open list module and use the context menu to delete a template. the template is deleted, but the record not disappear.
Updated by Riccardo De Contardi over 5 years ago
The issue is still present on 10.1.0-dev (latest master)
@Frank Naegler the issue with list module is IMO more general, as it seems to happen with all the records in list module (will check if an issue already exists) - oddly in this case no javascript error is present AFAICS
Updated by Riccardo De Contardi over 4 years ago
Performed the following tests with both 9.5.14 and 10.4.0-dev
1) Template module > info/Modify > click on the icon of an ext template > choose delete from the context menu
2) List view > click on the icon of a record > choose delete from the context menu
Results:
the record is actually deleted on both cases, but as there is no reload, no feedback is given and it seems that it did not work at all.
Updated by Andreas Kienast over 4 years ago
- Status changed from Accepted to Closed
The original has been resolved some time ago in #89151.
The follow-up issue that no "after delete" action happens occurs at multiple places. We have to find a solution to execute individual actions after e.g deleting a record.
Updated by Andreas Kienast over 4 years ago
I've created a new ticket for the "no reload" situation: https://forge.typo3.org/issues/90791