KunstmaanBundlesCMS icon indicating copy to clipboard operation
KunstmaanBundlesCMS copied to clipboard

[AdminListBundle] Fix CSRF token in AdminList delete modal

Open molovo opened this issue 2 years ago • 0 comments

The CSRF token uses an ID which no longer matches that used in NodeAdminController, meaning that the delete function does not work for nodes within an AdminList. This PR updates the ID, and the name of the submit button (for consistency).

To reproduce the original error:

  • Go to an AdminList containing nodes.
  • Click the delete icon for one of the rows
  • Confirm when the modal appears
  • Instead of deleting the node, the user is redirected to the node edit page.
Q A
Bug fix? yes
New feature? no
BC breaks? yes
Deprecations? no
Fixed tickets N/A

molovo avatar May 06 '22 15:05 molovo