Commit 9e34c765 authored by Andrii Chyrskyi's avatar Andrii Chyrskyi
Browse files

Merge pull request #2933 from goalgorilla/issue/3197241-call_to_a_member_function_bundle_on_null

Issue #3197241 by yasmeensalah, Ressinel: Call to a member function bundle() onnull in social_group/src/Plugin/EntityReferenceSelection/SocialGroupSelection.php
parent 67d930d0
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -34,6 +34,9 @@ class SocialGroupSelection extends DefaultSelection {
        $all_group_types = $configuration['target_bundles'];
      }
    }
    elseif ($configuration['target_bundles'] === NULL) {
      return $query;
    }

    $plugin_id = 'group_node:' . $configuration['entity']->bundle();
    $storage = $this->entityTypeManager->getStorage('group_type');