- π³π±Netherlands seanB Netherlands
Could someone create an MR for this? This seems like a reasonable change.
This code:
public function build() {
// Get the associated group content for the current node.
$node = $this->getContextValue('node');
if ($node) {
$group_contents = GroupContent::loadByEntity($node);
fails when on a node/add/whatever page because it gets an unsaved node object. This results in the error:
Drupal\Core\Entity\EntityStorageException: Cannot load GroupContent entities for an unsaved entity. in Drupal\group\Entity\Storage\GroupContentStorage->loadByEntity()
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Could someone create an MR for this? This seems like a reasonable change.