In the file delete confirmation form (FileManagementDeleteFileConfirmForm.php) the route for the canceling option points to file_management_view.overview, which requires file_management:view to be installed. That is not a good idea at this point due to issue #3081139: Enable file_management_view is broken.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | file_management-file_cancel_delete_url_is_wrong-3081175-2.patch | 674 bytes | kurkuma |
Comments
Comment #2
kurkuma commentedAdded a check for the module file_management_view. Otherwise use the core file view path.
This allows to use the main module (file_management) with a modified core view to add the operations links and without using the file_management_view, which has other problems of its own.
Comment #4
dpacassiThanks for your report & patch kurkuma!
I've slightly changed the approach though, I'm check if the route exists, not if the module is enabled.
As for the fallback, I'm using the machine name of the standard view display which should work in such cases.
Comment #5
dpacassi