- Issue created by @bserem
When trying to delete a menu
And using version 2.0.5 of this module
I am getting an error:
Drupal\Core\Entity\EntityStorageException: Some mandatory parameters are missing ("group") to generate a URL for route "entity.group_content_menu.canonical". in Drupal\Core\Entity\Sql\SqlContentEntityStorage->delete() (line 762 of core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php).
After applying patch from v3 to v2 (https://git.drupalcode.org/project/group_content_menu/-/commit/179c61339...)
Then the error message changes:
Drupal\Core\Entity\EntityStorageException: The "group_content_menu" entity with the ID "185" cannot have a URI as it does not have a group relationship in Drupal\Core\Entity\Sql\SqlContentEntityStorage->delete() (line 762 of core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php).
But I'm still unable to delete the menu.
Using unpatched v2.0.5 of group_content_menu and entity_usage up to v2.0-beta19 I can delete the menu.
Adding and trying to delete a group seems to be enough.
We should be able to delete a group.
Active
2.0
Code