Project

General

Profile

Actions

Bug #86960

closed

"Delete" Button in template-contextmenu not working

Added by Thomas Anders about 6 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend JavaScript
Target version:
-
Start date:
2018-11-21
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
9
PHP Version:
7.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

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

delete-template.png (54.2 KB) delete-template.png Thomas Anders, 2018-11-21 09:29
Actions #1

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)
Actions #2

Updated by Thomas Anders over 5 years ago

Same in 9.5.5 - still not working

Actions #3

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.

Actions #4

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

Actions #5

Updated by Georg Ringer over 4 years ago

this did work for me on master

Actions #6

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.

Actions #7

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.

Actions #8

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

Actions

Also available in: Atom PDF