- Issue created by @blacksnipe
When installing version 1.1.2 of this module, I get the following error when viewing the product overview.
Error: Class "Drupal\group\Entity\GroupContent" not found in _commerce_quick_node_clone_has_clone_permission() (line 53 of modules/contrib/commerce_quick_node_clone/commerce_quick_node_clone.module).
After a quick patch - based on issue #3306677 for Quick Node Clone ✨ Intercompatibility with Group module new versions Needs work -, I get another error:
TypeError: Drupal\group\Entity\GroupRelationship::loadByEntity(): Argument #1 ($entity) must be of type Drupal\Core\Entity\EntityInterface, null given, called in /var/www/html/web/modules/contrib/commerce_quick_node_clone/src/Controller/QuickNodeCloneNodeController.php on line 83 in Drupal\group\Entity\GroupRelationship::loadByEntity() (line 165 of modules/contrib/group/src/Entity/GroupRelationship.php).
Update the code, so Group 3.x is supported.
See patch below for an initial approach based on issue
#3306677 for Quick Node Clone
✨
Intercompatibility with Group module new versions
Needs work
.
None.
None.
None.
None.
Active
1.1
Code