I can't delete a mega menu via the CMS (Drupal 8.4.0) or via `entity_delete_multiple('simple_mega_menu', $result)`.

They both give the following error:
Drupal\Core\Entity\EntityStorageException: Some mandatory parameters are missing ("simple_mega_menu_revision") to generate a URL for route "entity.simple_mega_menu.revision_revert". in Drupal\Core\Entity\Sql\SqlContentEntityStorage->delete() (line 753 of /mnt/www/html/SITE/docroot/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php).

Let me know if I can do anything to help track down or fix.

CommentFileSizeAuthor
#5 2919073-5.patch3.59 KBflocondetoile
#3 2919073-3.patch586 bytesflocondetoile

Comments

bloke_zero created an issue. See original summary.

flocondetoile’s picture

Thanks for reporting this issue. I remember that commerce 2.x have got same issue on 8.4. I will fix this soon.

flocondetoile’s picture

Status: Active » Needs review
StatusFileSize
new586 bytes

First, a failing test.

Status: Needs review » Needs work

The last submitted patch, 3: 2919073-3.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

flocondetoile’s picture

Status: Needs work » Needs review
StatusFileSize
new3.59 KB

This patch should fix the issue. Let's me know.

bloke_zero’s picture

@flocondetoile patch works! Many thanks for the quick response.

  • flocondetoile committed f2f435b on 8.x-1.x
    Issue #2919073 by flocondetoile: Can't delete Mega Menu
    
flocondetoile’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.