- Issue created by @ilya.no
If module `opigno_class` is enabled and there is group of type `Learning Path`, which contains classes and we click on `Duplicate` link, then there is WSOD with following error in logs :
"Drupal\Core\Entity\EntityStorageException: The provided plugin provided does not support the entity's bundle. in Drupal\group\Entity\Storage\GroupContentStorage->createForEntityInGroup() (line 54 of web/modules/contrib/group/src/Entity/Storage/GroupContentStorage.php)."
This happens, because here function `trainingDuplicate` assumes, that there may be only `opigno_course`.
Install Opigno LMS, and enable necessary modules, including `opigno_class` and `opigno_course`. Add Learning path with course and class and try to duplicate it.
Update code, so it assumes, that there may be not only courses.
Review patch, fix if necessary and commit.
Needs review
3.1
Code