Bug #86960
closed
"Delete" Button in template-contextmenu not working
Added by Thomas Anders about 6 years ago.
Updated over 4 years ago.
Category:
Backend JavaScript
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
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)
Same in 9.5.5 - still not working
- 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.
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
this did work for me on master
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.
- 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.
Also available in: Atom
PDF