- Issue created by @OlivierG
Install Group 2.3.1
Install Group permissions 2.0.0-alpha5
Go in permission templates and edit a template.
See the error :
Error: Call to undefined method Drupal\group\Entity\GroupRole::inPermissionsUI() in Drupal\group_permissions_template\Entity\GroupRoleDecorator->setGroupRole() (line 20 of modules/contrib/group_permissions_template/src/Entity/GroupRoleDecorator.php).
Drupal\group_permissions_template\Form\GroupPermissionsTemplatePermissionForm->getGroupRoles() (Line: 141)
Drupal\group\Form\GroupPermissionsForm->buildForm(Array, Object) (Line: 88)
Drupal\group\Form\GroupPermissionsTypeSpecificForm->buildForm(Array, Object, Object) (Line: 146)
Drupal\group_permissions_template\Form\GroupPermissionsTemplatePermissionForm->buildForm(Array, Object, Object, Object)
call_user_func_array(Array, Array) (Line: 536)
Drupal\Core\Form\FormBuilder->retrieveForm('group_permissions_template.permissions', Object) (Line: 284)
Drupal\Core\Form\FormBuilder->buildForm(Object, Object) (Line: 73)
Drupal\Core\Controller\FormController->getContentResult(Object, Object)
In web/modules/contrib/group_permissions_template/src/Form/GroupPermissionsTemplatePermissionForm.php comment lines from 104 to 117.
Needs work
2.0
Code