From 9bb78de13f850912f8fd7381551ade99311e485c Mon Sep 17 00:00:00 2001
From: Kevin Cristiano <kcristiano@kcristiano.com>
Date: Sun, 15 Nov 2020 09:21:27 -0500
Subject: [PATCH] dev/core#2178 Fix regression on adding contacts to a newly
 created group

https://github.com/civicrm/civicrm-core/pull/18967 from Seamus Lee
---
 civicrm/CRM/Group/Controller.php | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/civicrm/CRM/Group/Controller.php b/civicrm/CRM/Group/Controller.php
index 540ca3ec73..38ce893417 100644
--- a/civicrm/CRM/Group/Controller.php
+++ b/civicrm/CRM/Group/Controller.php
@@ -15,6 +15,7 @@
  * @copyright CiviCRM LLC https://civicrm.org/licensing
  */
 class CRM_Group_Controller extends CRM_Core_Controller {
+  protected $entity = 'Contact';
 
   /**
    * Class constructor.
@@ -52,6 +53,7 @@ class CRM_Group_Controller extends CRM_Core_Controller {
 
     // add all the actions
     $this->addActions($uploadDir, $uploadNames);
+    $this->set('entity', $this->entity);
   }
 
   /**
-- 
GitLab